diff options
Diffstat (limited to 'examples')
| -rw-r--r-- | examples/windmark.rs | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/examples/windmark.rs b/examples/windmark.rs index 4507048..e5dcd52 100644 --- a/examples/windmark.rs +++ b/examples/windmark.rs @@ -85,7 +85,8 @@ async fn main() -> Result<(), Box<dyn std::error::Error>> { ) })); router.set_post_route_callback(Box::new(|context, content| { - *content = content.replace("Welcome!", "Welcome to Windmark!"); + content.content = + content.content.replace("Welcome!", "Welcome to Windmark!"); info!( "closed connection from {}", |