bak 2.0.0

📦 move files out of the way
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
use crate::common::*;

#[derive(Debug)]
pub(crate) enum Error {
  Root,
  UnexpectedFinalPathComponent,
}

impl Display for Error {
  fn fmt(&self, f: &mut Formatter) -> fmt::Result {
    match self {
      Self::Root => write!(f, "cannot move aside root directory"),
      Self::UnexpectedFinalPathComponent => write!(f, ""),
    }
  }
}
impl std::error::Error for Error {}