Skip to content

Commit

Permalink
cleanup variants in TreeErrorKind
Browse files Browse the repository at this point in the history
Signed-off-by: simonsan <[email protected]>
  • Loading branch information
simonsan committed Oct 28, 2024
1 parent 858eb2e commit 2bfa13c
Showing 1 changed file with 0 additions and 12 deletions.
12 changes: 0 additions & 12 deletions crates/core/src/blob/tree.rs
Original file line number Diff line number Diff line change
Expand Up @@ -33,24 +33,12 @@ use crate::{
#[derive(thiserror::Error, Debug, displaydoc::Display)]
#[non_exhaustive]
pub enum TreeErrorKind {
/// blob `{0}` not found in index
BlobIdNotFound(TreeId),
/// `{0:?}` is not a directory
NotADirectory(OsString),
/// Path `{0:?}` not found
PathNotFound(OsString),
/// path should not contain current or parent dir
ContainsCurrentOrParentDirectory,
/// `serde_json` couldn't serialize the tree: `{0:?}`
SerializingTreeFailed(serde_json::Error),
/// `serde_json` couldn't deserialize tree from bytes of JSON text: `{0:?}`
DeserializingTreeFailed(serde_json::Error),
/// slice is not UTF-8: `{0:?}`
PathIsNotUtf8Conform(Utf8Error),
/// error in building nodestreamer: `{0:?}`
BuildingNodeStreamerFailed(ignore::Error),
/// failed to read file string from glob file: `{0:?}`
ReadingFileStringFromGlobsFailed(std::io::Error),
/// Error `{kind}` in tree streamer: `{source}`
Channel {
kind: &'static str,
Expand Down

0 comments on commit 2bfa13c

Please sign in to comment.