Skip to content

Commit deb8f09

Browse files
authored
refactor: rename ErrorShouldCancel (#66)
1 parent f0c84aa commit deb8f09

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/error.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ pub enum PubGrubError<P: Package, V: Version> {
6868
/// Error arising when the implementer of [DependencyProvider](crate::solver::DependencyProvider)
6969
/// returned an error in the method [should_cancel](crate::solver::DependencyProvider::should_cancel).
7070
#[error("We should cancel")]
71-
ErrorShouldCancel(Box<dyn std::error::Error>),
71+
ErrorInShouldCancel(Box<dyn std::error::Error>),
7272

7373
/// Something unexpected happened.
7474
#[error("{0}")]

src/solver.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ pub fn resolve<P: Package, V: Version>(
9090
loop {
9191
dependency_provider
9292
.should_cancel()
93-
.map_err(|err| PubGrubError::ErrorShouldCancel(err))?;
93+
.map_err(|err| PubGrubError::ErrorInShouldCancel(err))?;
9494

9595
state.unit_propagation(next)?;
9696

0 commit comments

Comments
 (0)