From 001a9ac21c29af53d31e9710d12e37d565880207 Mon Sep 17 00:00:00 2001 From: Yigit Sever Date: Sat, 10 Apr 2021 16:56:00 +0300 Subject: giving up with style --- src/custom_filters.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/custom_filters.rs') diff --git a/src/custom_filters.rs b/src/custom_filters.rs index 8c36d02..1d65c69 100644 --- a/src/custom_filters.rs +++ b/src/custom_filters.rs @@ -12,7 +12,7 @@ pub fn with_db(db: Db) -> impl Filter + Clo // Accept only json encoded Transaction body and reject big payloads pub fn transaction_json_body() -> impl Filter + Clone { - warp::body::content_length_limit(1024 * 32).and(warp::body::json()) + warp::body::content_length_limit(1024 * 32).and(warp::filters::body::json()) } // Accept only json encoded Transaction body and reject big payloads -- cgit v1.2.3-70-g09d2