mirror of https://github.com/zkat/cacache-rs.git
fix(fmt): cargo fmt
This commit is contained in:
parent
4a6950ff5d
commit
0349d115f4
|
|
@ -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)?)
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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,
|
||||
})
|
||||
|
|
|
|||
Loading…
Reference in New Issue