From 71e7bf07fd9efd17da40e077babbf634113f8fed Mon Sep 17 00:00:00 2001 From: Lars Wirzenius Date: Fri, 18 Sep 2020 19:15:10 +0300 Subject: use to_string method for ChunkId instead of format! macro --- src/bin/obnam-server.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/bin/obnam-server.rs') diff --git a/src/bin/obnam-server.rs b/src/bin/obnam-server.rs index 40ea400..3adf2eb 100644 --- a/src/bin/obnam-server.rs +++ b/src/bin/obnam-server.rs @@ -174,7 +174,7 @@ impl warp::Reply for ChunkResult { match self { ChunkResult::Created(id) => { let body = CreatedBody { - chunk_id: format!("{}", id), + chunk_id: id.to_string(), }; let body = serde_json::to_string(&body).unwrap(); let mut r = warp::reply::Response::new(body.into()); -- cgit v1.2.1