diff options
-rw-r--r-- | src/main.rs | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/main.rs b/src/main.rs index 07380b5..4c58eaf 100644 --- a/src/main.rs +++ b/src/main.rs @@ -25,8 +25,7 @@ mod config; const CONFIG_FILE_NAME: &str = "kimikuri.json"; -fn with_object<T: Clone + Send>(obj: T) - -> impl Filter<Extract=(T, ), Error=Infallible> + Clone { +fn with_object<T: Clone + Send>(obj: T) -> impl Filter<Extract=(T, ), Error=Infallible> + Clone { warp::any().map(move || obj.clone()) } |