From 0349d115f4e8d7aa59c6f7a0455b94be898efd46 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Kat=20March=C3=A1n?= Date: Thu, 27 Jun 2019 22:48:58 -0700 Subject: [PATCH] fix(fmt): cargo fmt --- src/get.rs | 4 ++-- src/put.rs | 4 +--- 2 files changed, 3 insertions(+), 5 deletions(-) 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, })