fix: examples and unused"

This commit is contained in:
Mark Henderson 2020-04-08 12:52:31 -04:00 committed by Mark Robert Henderson
parent bf7b0535ae
commit d3912d511b
3 changed files with 2 additions and 5 deletions

2
Cargo.lock generated
View File

@ -1362,7 +1362,7 @@ dependencies = [
"env_logger",
"futures 0.3.4",
"ipfs",
"libipld 0.1.0 (registry+https://github.com/rust-lang/crates.io-index)",
"libipld 0.1.0 (git+https://github.com/ipfs-rust/rust-ipld)",
"multihash",
]

View File

@ -10,5 +10,5 @@ async-std = "1.5.0"
env_logger = "0.7.1"
futures = "0.3.4"
ipfs = { path = ".." }
libipld = "0.1.0"
libipld = { git = "https://github.com/ipfs-rust/rust-ipld", features = ["dag-pb"] }
multihash = "0.10.1"

View File

@ -1,10 +1,7 @@
use crate::v0::support::{with_ipfs, InvalidMultipartFormData, StringError};
use futures::stream::StreamExt;
use ipfs::{Ipfs, IpfsTypes};
use libipld::block::encode_ipld;
use libipld::cid::{Cid, Codec};
use libipld::codec::Codec as _;
use libipld::json::DagJsonCodec;
use serde::Deserialize;
use serde_json::json;
use warp::{multipart, path, query, reply, Buf, Filter, Rejection, Reply};