fix(fmt): cargo fmt

This commit is contained in:
Kat Marchán 2019-06-27 22:48:58 -07:00
parent 4a6950ff5d
commit 0349d115f4
No known key found for this signature in database
GPG Key ID: AEB529C08A3C7E9E
2 changed files with 3 additions and 5 deletions

View File

@ -38,7 +38,7 @@ where
pub fn open_hash<P>(cache: P, sri: Integrity) -> Result<Get, Error>
where
P: AsRef<Path>
P: AsRef<Path>,
{
Ok(Get {
reader: read::open(cache.as_ref(), sri)?,
@ -59,7 +59,7 @@ where
pub fn read_hash<P>(cache: P, sri: &Integrity) -> Result<Vec<u8>, Error>
where
P: AsRef<Path>
P: AsRef<Path>,
{
Ok(read::read(cache.as_ref(), sri)?)
}

View File

@ -50,9 +50,7 @@ impl PutOpts {
written: 0,
writer: write::Writer::new(
cache.as_ref(),
*self.algorithm
.as_ref()
.unwrap_or(&Algorithm::Sha256),
*self.algorithm.as_ref().unwrap_or(&Algorithm::Sha256),
)?,
opts: self,
})