forked from lix-project/lix
Shut up warnings
This commit is contained in:
parent
14aa0c3259
commit
9e565781c6
2 changed files with 5 additions and 6 deletions
|
@ -24,10 +24,10 @@ fn parse_file<R: Read>(input: &mut R) -> Result<(), Error> {
|
||||||
|
|
||||||
match String::read(input)?.as_ref() {
|
match String::read(input)?.as_ref() {
|
||||||
"regular" => {
|
"regular" => {
|
||||||
let mut executable = false;
|
let mut _executable = false;
|
||||||
let mut tag = String::read(input)?;
|
let mut tag = String::read(input)?;
|
||||||
if tag == "executable" {
|
if tag == "executable" {
|
||||||
executable = true;
|
_executable = true;
|
||||||
if String::read(input)? != "" {
|
if String::read(input)? != "" {
|
||||||
return Err(Error::BadExecutableField);
|
return Err(Error::BadExecutableField);
|
||||||
}
|
}
|
||||||
|
@ -36,7 +36,7 @@ fn parse_file<R: Read>(input: &mut R) -> Result<(), Error> {
|
||||||
if tag != "contents" {
|
if tag != "contents" {
|
||||||
return Err(Error::MissingNarField);
|
return Err(Error::MissingNarField);
|
||||||
}
|
}
|
||||||
let contents = Vec::<u8>::read(input)?;
|
let _contents = Vec::<u8>::read(input)?;
|
||||||
if String::read(input)? != ")" {
|
if String::read(input)? != ")" {
|
||||||
return Err(Error::MissingNarCloseTag);
|
return Err(Error::MissingNarCloseTag);
|
||||||
}
|
}
|
||||||
|
@ -50,7 +50,7 @@ fn parse_file<R: Read>(input: &mut R) -> Result<(), Error> {
|
||||||
if String::read(input)? != "name" {
|
if String::read(input)? != "name" {
|
||||||
return Err(Error::MissingNarField);
|
return Err(Error::MissingNarField);
|
||||||
}
|
}
|
||||||
let name = String::read(input)?;
|
let _name = String::read(input)?;
|
||||||
if String::read(input)? != "node" {
|
if String::read(input)? != "node" {
|
||||||
return Err(Error::MissingNarField);
|
return Err(Error::MissingNarField);
|
||||||
}
|
}
|
||||||
|
@ -68,7 +68,7 @@ fn parse_file<R: Read>(input: &mut R) -> Result<(), Error> {
|
||||||
if String::read(input)? != "target" {
|
if String::read(input)? != "target" {
|
||||||
return Err(Error::MissingNarField);
|
return Err(Error::MissingNarField);
|
||||||
}
|
}
|
||||||
let target = String::read(input)?;
|
let _target = String::read(input)?;
|
||||||
if String::read(input)? != ")" {
|
if String::read(input)? != ")" {
|
||||||
return Err(Error::MissingNarCloseTag);
|
return Err(Error::MissingNarCloseTag);
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,7 +1,6 @@
|
||||||
use super::{PathInfo, Store, StorePath};
|
use super::{PathInfo, Store, StorePath};
|
||||||
use crate::Error;
|
use crate::Error;
|
||||||
use hyper::client::Client;
|
use hyper::client::Client;
|
||||||
use futures::stream::Concat;
|
|
||||||
|
|
||||||
pub struct BinaryCacheStore {
|
pub struct BinaryCacheStore {
|
||||||
base_uri: String,
|
base_uri: String,
|
||||||
|
|
Loading…
Reference in a new issue