Skip to content

Commit

Permalink
Remove unused testing-only method
Browse files Browse the repository at this point in the history
  • Loading branch information
MichaReiser committed Sep 3, 2024
1 parent 2f5ccf4 commit d8fe4a7
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 8 deletions.
1 change: 0 additions & 1 deletion src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,6 @@ pub mod plumbing {
pub use crate::ingredient::Jar;
pub use crate::ingredient::JarAux;
pub use crate::key::DatabaseKeyIndex;
pub use crate::result::error_as_cycle;
pub use crate::revision::Revision;
pub use crate::runtime::stamp;
pub use crate::runtime::Runtime;
Expand Down
7 changes: 0 additions & 7 deletions src/result.rs
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,6 @@ use std::fmt::Debug;

pub type Result<T> = std::result::Result<T, Error>;

pub fn error_as_cycle(error: &Error) -> Option<&Cycle> {
match &*error.kind {
ErrorKind::Cycle(error) => Some(&error.cycle),
_ => None,
}
}

#[derive(Debug)]
pub struct Error {
kind: Box<ErrorKind>,
Expand Down

0 comments on commit d8fe4a7

Please sign in to comment.