TreeWalker WIP.
This commit is contained in:
@@ -84,6 +84,9 @@ pub enum Error {
|
||||
#[error("io error: {0}")]
|
||||
IoError(#[from] std::io::Error),
|
||||
|
||||
#[error("non-unicode file name: '{0}'")]
|
||||
NonUnicodeFileName(String),
|
||||
|
||||
#[error("{0}")]
|
||||
UnknownError(String),
|
||||
}
|
||||
|
||||
@@ -57,6 +57,14 @@ impl FromStr for ObjectId {
|
||||
}
|
||||
}
|
||||
|
||||
impl Default for ObjectId {
|
||||
fn default() -> Self {
|
||||
return Self {
|
||||
id: Arc::new(vec![]),
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
impl fmt::Display for ObjectId {
|
||||
fn fmt(&self, f: &mut fmt::Formatter) -> std::result::Result<(), fmt::Error> {
|
||||
write_hex(f, self.id.as_slice())
|
||||
|
||||
Reference in New Issue
Block a user