diff options
author | Lars Wirzenius <liw@liw.fi> | 2020-09-18 19:15:10 +0300 |
---|---|---|
committer | Lars Wirzenius <liw@liw.fi> | 2020-09-18 19:50:46 +0300 |
commit | 71e7bf07fd9efd17da40e077babbf634113f8fed (patch) | |
tree | 2e08541bbede3e5dacdd7fe1bce2e1b0da55ae4e /src/bin/obnam-server.rs | |
parent | e4457fa26afb27b227674c5dd1284a26127dcea6 (diff) | |
download | obnam2-71e7bf07fd9efd17da40e077babbf634113f8fed.tar.gz |
use to_string method for ChunkId instead of format! macro
Diffstat (limited to 'src/bin/obnam-server.rs')
-rw-r--r-- | src/bin/obnam-server.rs | 2 |
1 files changed, 1 insertions, 1 deletions
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()); |