refactor: remove unneeded Ok()

This commit is contained in:
Kat Marchán 2019-06-26 22:03:29 -07:00
parent bc56a1b3fe
commit abc0246da6
No known key found for this signature in database
GPG Key ID: AEB529C08A3C7E9E
1 changed files with 1 additions and 1 deletions

View File

@ -28,7 +28,7 @@ pub fn copy<P: AsRef<Path>, K: AsRef<str>>(cache: P, key: K, to: P) -> Result<u6
}
pub fn copy_hash<P: AsRef<Path>>(cache: P, sri: &Integrity, to: P) -> Result<u64, Error> {
Ok(read::copy(cache.as_ref(), sri, to.as_ref())?)
read::copy(cache.as_ref(), sri, to.as_ref())
}
pub fn info<P: AsRef<Path>, K: AsRef<str>>(cache: P, key: K) -> Result<Option<Entry>, Error> {