FileSet: no error for remove_path

andybalholm
Mar 21, 2023, 12:29 AM
ZGFCBIPXE66JLDBV4M7MLIPS5RYE3TDANZO6X2ZEGGWJRC3CPWHAC

Dependencies

  • [2] FIIUZR4L Include file content
  • [3] ATRA7XTT RIIR: factor out Repository struct

Change contents

  • edit in rust/src/repo.rs at line 306
    [2.3396][2.3396:3430]()
    RemoveNotImplemented(String),
  • edit in rust/src/repo.rs at line 316
    [2.3665][2.3665:3799]()
    FileSetError::RemoveNotImplemented(p) => {
    write!(f, "not implemented: remove_path({})", p)
    }
  • replacement in rust/src/repo.rs at line 348
    [2.4772][2.4772:4917]()
    fn remove_path(&self, path: &str, _rec: bool) -> Result<(), Self::Error> {
    Err(FileSetError::RemoveNotImplemented(path.to_string()))
    [2.4772]
    [2.4917]
    fn remove_path(&self, _path: &str, _rec: bool) -> Result<(), Self::Error> {
    Ok(())