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>
|
pub fn open_hash<P>(cache: P, sri: Integrity) -> Result<Get, Error>
|
||||||
where
|
where
|
||||||
P: AsRef<Path>
|
P: AsRef<Path>,
|
||||||
{
|
{
|
||||||
Ok(Get {
|
Ok(Get {
|
||||||
reader: read::open(cache.as_ref(), sri)?,
|
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>
|
pub fn read_hash<P>(cache: P, sri: &Integrity) -> Result<Vec<u8>, Error>
|
||||||
where
|
where
|
||||||
P: AsRef<Path>
|
P: AsRef<Path>,
|
||||||
{
|
{
|
||||||
Ok(read::read(cache.as_ref(), sri)?)
|
Ok(read::read(cache.as_ref(), sri)?)
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -50,9 +50,7 @@ impl PutOpts {
|
||||||
written: 0,
|
written: 0,
|
||||||
writer: write::Writer::new(
|
writer: write::Writer::new(
|
||||||
cache.as_ref(),
|
cache.as_ref(),
|
||||||
*self.algorithm
|
*self.algorithm.as_ref().unwrap_or(&Algorithm::Sha256),
|
||||||
.as_ref()
|
|
||||||
.unwrap_or(&Algorithm::Sha256),
|
|
||||||
)?,
|
)?,
|
||||||
opts: self,
|
opts: self,
|
||||||
})
|
})
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue