We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
Infallible
RuntimeError
1 parent e6b130c commit 64059c6Copy full SHA for 64059c6
1 file changed
src/runtime_error.rs
@@ -1,4 +1,5 @@
1
use derive_more::{Display, Error};
2
+use std::convert::Infallible;
3
4
/// Error caused by the CLI program.
5
#[derive(Debug, Display, Error)]
@@ -32,3 +33,9 @@ pub enum UnsupportedFeature {
32
33
#[display("Feature --deduplicate-hardlinks is not available on this platform")]
34
DeduplicateHardlink,
35
}
36
+
37
+impl From<Infallible> for RuntimeError {
38
+ fn from(value: Infallible) -> Self {
39
+ match value {}
40
+ }
41
+}
0 commit comments