diff --git a/src/content/rm.rs b/src/content/rm.rs index 3081cdc..c4c9a21 100644 --- a/src/content/rm.rs +++ b/src/content/rm.rs @@ -1,9 +1,12 @@ -use crate::content::path; -use ssri::Integrity; -use std::io; use std::fs; use std::path::Path; -pub fn rm(cache: &Path, sri: &Integrity) -> io::Result<()> { - fs::remove_file(path::content_path(&cache, &sri)) +use ssri::Integrity; + +use crate::content::path; +use crate::errors::Error; + +pub fn rm(cache: &Path, sri: &Integrity) -> Result<(), Error> { + fs::remove_file(path::content_path(&cache, &sri))?; + Ok(()) }