diff --git a/content/docs/static-files.md b/content/docs/static-files.md index d28ff30..7bf387f 100644 --- a/content/docs/static-files.md +++ b/content/docs/static-files.md @@ -123,7 +123,7 @@ fn main() { App::new() .handler( "/static", - StaticFiles::with_config(".", MyConfig) + StaticFiles::with_config(".", MyConfig).unwrap() .show_files_listing() ).finish(); }