diff options
author | Lars Wirzenius <liw@liw.fi> | 2021-03-24 09:57:24 +0200 |
---|---|---|
committer | Lars Wirzenius <liw@liw.fi> | 2021-03-24 09:59:27 +0200 |
commit | c3f415ea698e85d903dc5fe833b14207f297ea23 (patch) | |
tree | 9b4d6bcebce0f72d77b7269f03bdde0b2df1fe23 | |
parent | 237062e6ca0d180e41e6d5da5c7a958adc83b41c (diff) | |
download | obnam2-c3f415ea698e85d903dc5fe833b14207f297ea23.tar.gz |
chore: use warp's bytes instead of bytes crate directly
-rw-r--r-- | Cargo.lock | 1 | ||||
-rw-r--r-- | Cargo.toml | 1 | ||||
-rw-r--r-- | src/bin/obnam-server.rs | 2 |
3 files changed, 1 insertions, 3 deletions
@@ -1040,7 +1040,6 @@ name = "obnam" version = "0.3.1" dependencies = [ "anyhow", - "bytes 0.5.6", "bytesize", "chrono", "dirs", @@ -11,7 +11,6 @@ repository = "https://gitlab.com/larswirzenius/obnam" [dependencies] anyhow = "1" -bytes = "0.5" bytesize = "1" chrono = "0.4" dirs = "3" diff --git a/src/bin/obnam-server.rs b/src/bin/obnam-server.rs index ddbfce3..9a6540f 100644 --- a/src/bin/obnam-server.rs +++ b/src/bin/obnam-server.rs @@ -1,5 +1,4 @@ use anyhow::Context; -use bytes::Bytes; use log::{debug, error, info}; use obnam::chunk::DataChunk; use obnam::chunkid::ChunkId; @@ -15,6 +14,7 @@ use std::sync::Arc; use structopt::StructOpt; use tokio::sync::Mutex; use warp::http::StatusCode; +use warp::hyper::body::Bytes; use warp::Filter; #[derive(Debug, StructOpt)] |