Skip to content

Commit

Permalink
Remove unused ErrorKind variant
Browse files Browse the repository at this point in the history
  • Loading branch information
bouzuya committed Dec 20, 2023
1 parent 87de87c commit f84400e
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
2 changes: 1 addition & 1 deletion src/document_path.rs
Expand Up @@ -82,7 +82,7 @@ impl DocumentPath {
{
let mut collection_path: CollectionPath = collection_path
.try_into()
.map_err(|e| Error::from(ErrorKind::CollectionIdConversion(e.to_string())))?;
.map_err(|e| Error::from(ErrorKind::CollectionPathConversion(e.to_string())))?;

enum I {
C(CollectionId),
Expand Down
2 changes: 0 additions & 2 deletions src/error.rs
Expand Up @@ -5,8 +5,6 @@ pub struct Error(#[from] ErrorKind);

#[derive(Clone, Debug, Eq, Hash, Ord, PartialEq, PartialOrd, thiserror::Error)]
pub(crate) enum ErrorKind {
#[error("collection id conversion {0}")]
CollectionIdConversion(String),
#[error("collection path conversion {0}")]
CollectionPathConversion(String),
#[error("contains invalid charactor")]
Expand Down

0 comments on commit f84400e

Please sign in to comment.