summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLars Wirzenius <liw@liw.fi>2021-03-24 09:57:24 +0200
committerLars Wirzenius <liw@liw.fi>2021-03-24 09:59:27 +0200
commitc3f415ea698e85d903dc5fe833b14207f297ea23 (patch)
tree9b4d6bcebce0f72d77b7269f03bdde0b2df1fe23
parent237062e6ca0d180e41e6d5da5c7a958adc83b41c (diff)
downloadobnam2-c3f415ea698e85d903dc5fe833b14207f297ea23.tar.gz
chore: use warp's bytes instead of bytes crate directly
-rw-r--r--Cargo.lock1
-rw-r--r--Cargo.toml1
-rw-r--r--src/bin/obnam-server.rs2
3 files changed, 1 insertions, 3 deletions
diff --git a/Cargo.lock b/Cargo.lock
index 1531789..6067bf2 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -1040,7 +1040,6 @@ name = "obnam"
version = "0.3.1"
dependencies = [
"anyhow",
- "bytes 0.5.6",
"bytesize",
"chrono",
"dirs",
diff --git a/Cargo.toml b/Cargo.toml
index f1d1a4d..73f13da 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -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)]