Skip to content

Commit 64059c6

Browse files
committed
feat(api): convert Infallible to RuntimeError
1 parent e6b130c commit 64059c6

1 file changed

Lines changed: 7 additions & 0 deletions

File tree

src/runtime_error.rs

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
use derive_more::{Display, Error};
2+
use std::convert::Infallible;
23

34
/// Error caused by the CLI program.
45
#[derive(Debug, Display, Error)]
@@ -32,3 +33,9 @@ pub enum UnsupportedFeature {
3233
#[display("Feature --deduplicate-hardlinks is not available on this platform")]
3334
DeduplicateHardlink,
3435
}
36+
37+
impl From<Infallible> for RuntimeError {
38+
fn from(value: Infallible) -> Self {
39+
match value {}
40+
}
41+
}

0 commit comments

Comments
 (0)