diff options
author | Eelco Dolstra <edolstra@gmail.com> | 2019-12-05 14:24:46 +0100 |
---|---|---|
committer | Eelco Dolstra <edolstra@gmail.com> | 2019-12-10 13:37:23 +0100 |
commit | 9e565781c664f20df24a295fcfcfd20fb432c94b (patch) | |
tree | 7a490f2a57f9ea7983255db6c602bb769a32ce6e /nix-rust | |
parent | 14aa0c3259a7997d7273f3b3ce1a41af03293832 (diff) |
Shut up warnings
Diffstat (limited to 'nix-rust')
-rw-r--r-- | nix-rust/src/nar.rs | 10 | ||||
-rw-r--r-- | nix-rust/src/store/binary_cache_store.rs | 1 |
2 files changed, 5 insertions, 6 deletions
diff --git a/nix-rust/src/nar.rs b/nix-rust/src/nar.rs index aa05d815b..cb520935e 100644 --- a/nix-rust/src/nar.rs +++ b/nix-rust/src/nar.rs @@ -24,10 +24,10 @@ fn parse_file<R: Read>(input: &mut R) -> Result<(), Error> { match String::read(input)?.as_ref() { "regular" => { - let mut executable = false; + let mut _executable = false; let mut tag = String::read(input)?; if tag == "executable" { - executable = true; + _executable = true; if String::read(input)? != "" { return Err(Error::BadExecutableField); } @@ -36,7 +36,7 @@ fn parse_file<R: Read>(input: &mut R) -> Result<(), Error> { if tag != "contents" { return Err(Error::MissingNarField); } - let contents = Vec::<u8>::read(input)?; + let _contents = Vec::<u8>::read(input)?; if String::read(input)? != ")" { return Err(Error::MissingNarCloseTag); } @@ -50,7 +50,7 @@ fn parse_file<R: Read>(input: &mut R) -> Result<(), Error> { if String::read(input)? != "name" { return Err(Error::MissingNarField); } - let name = String::read(input)?; + let _name = String::read(input)?; if String::read(input)? != "node" { return Err(Error::MissingNarField); } @@ -68,7 +68,7 @@ fn parse_file<R: Read>(input: &mut R) -> Result<(), Error> { if String::read(input)? != "target" { return Err(Error::MissingNarField); } - let target = String::read(input)?; + let _target = String::read(input)?; if String::read(input)? != ")" { return Err(Error::MissingNarCloseTag); } diff --git a/nix-rust/src/store/binary_cache_store.rs b/nix-rust/src/store/binary_cache_store.rs index 09be4a7fd..9e1e88b7c 100644 --- a/nix-rust/src/store/binary_cache_store.rs +++ b/nix-rust/src/store/binary_cache_store.rs @@ -1,7 +1,6 @@ use super::{PathInfo, Store, StorePath}; use crate::Error; use hyper::client::Client; -use futures::stream::Concat; pub struct BinaryCacheStore { base_uri: String, |