Shut up warnings

This commit is contained in:
Eelco Dolstra 2019-12-05 14:24:46 +01:00
parent 14aa0c3259
commit 9e565781c6
2 changed files with 5 additions and 6 deletions

View file

@ -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);
}

View file

@ -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,