diff --git a/src/get.rs b/src/get.rs
index d58907a..23d0fc6 100644
--- a/src/get.rs
+++ b/src/get.rs
@@ -38,7 +38,7 @@ where
pub fn open_hash
(cache: P, sri: Integrity) -> Result
where
- P: AsRef
+ P: AsRef,
{
Ok(Get {
reader: read::open(cache.as_ref(), sri)?,
@@ -59,7 +59,7 @@ where
pub fn read_hash(cache: P, sri: &Integrity) -> Result, Error>
where
- P: AsRef
+ P: AsRef,
{
Ok(read::read(cache.as_ref(), sri)?)
}
diff --git a/src/put.rs b/src/put.rs
index 5d0f982..1e94d22 100644
--- a/src/put.rs
+++ b/src/put.rs
@@ -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,
})