fn remove(source: std::io::Error, path: &Path) -> Result<(), AddRootError> {
        if source.kind() == std::io::ErrorKind::NotFound {
            Ok(())
        } else {
            Err(AddRootError {
                source,
                msg: format!("Failed to delete {}", path.display()),
            })
        }
    }
/// Ignore NotFound errors (it is after all a remove), and otherwise
/// return an error explaining a delete on path failed.
Ignore NotFound errors (it is after all a remove), and otherwise
return an error explaining a delete on path failed.
Ignore NotFound errors ( it is after all a remove ) and otherwise return an error explaining a delete on path failed .
fn remove(source: std::io::Error, path: &Path) -> Result<(), AddRootError> {
        if source.kind() == std::io::ErrorKind::NotFound {
            Ok(())
        } else {
            Err(AddRootError {
                source,
                msg: format!("Failed to delete {}", path.display()),
            })
        }
    }
fn remove ( source : std :: io :: Error , path : & Path ) -> Result < ( ) , AddRootError > { if source . kind ( ) == std :: io :: ErrorKind :: NotFound { Ok ( ( ) ) } else { Err ( AddRootError { source , msg : format ! ( " " path display ( ) ) , } ) } }
Ignore NotFound errors (it is after all a remove), and otherwise
return an error explaining a delete on path failed.
Ignore NotFound errors ( it is after all a remove ) and otherwise return an error explaining a delete on path failed .
source
std::io::Error
path
&Path
source
std::io::Error
path
&Path