summaryrefslogtreecommitdiff
path: root/src/bin/obnam-server.rs
diff options
context:
space:
mode:
authorLars Wirzenius <liw@liw.fi>2020-09-18 19:15:10 +0300
committerLars Wirzenius <liw@liw.fi>2020-09-18 19:50:46 +0300
commit71e7bf07fd9efd17da40e077babbf634113f8fed (patch)
tree2e08541bbede3e5dacdd7fe1bce2e1b0da55ae4e /src/bin/obnam-server.rs
parente4457fa26afb27b227674c5dd1284a26127dcea6 (diff)
downloadobnam2-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.rs2
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());