summaryrefslogtreecommitdiffstats
path: root/src/option_value.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/option_value.rs')
-rw-r--r--src/option_value.rs12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/option_value.rs b/src/option_value.rs
index 73bdff7c..cbe5b383 100644
--- a/src/option_value.rs
+++ b/src/option_value.rs
@@ -1,4 +1,4 @@
-use crate::config::unreachable;
+use crate::config::delta_unreachable;
/// A value associated with a Delta command-line option name.
pub enum OptionValue {
@@ -25,7 +25,7 @@ impl From<OptionValue> for bool {
fn from(value: OptionValue) -> Self {
match value {
OptionValue::Boolean(value) => value,
- _ => unreachable("Error converting OptionValue to bool."),
+ _ => delta_unreachable("Error converting OptionValue to bool."),
}
}
}
@@ -40,7 +40,7 @@ impl From<OptionValue> for f64 {
fn from(value: OptionValue) -> Self {
match value {
OptionValue::Float(value) => value,
- _ => unreachable("Error converting OptionValue to f64."),
+ _ => delta_unreachable("Error converting OptionValue to f64."),
}
}
}
@@ -55,7 +55,7 @@ impl From<OptionValue> for Option<String> {
fn from(value: OptionValue) -> Self {
match value {
OptionValue::OptionString(value) => value,
- _ => unreachable("Error converting OptionValue to Option<String>."),
+ _ => delta_unreachable("Error converting OptionValue to Option<String>."),
}
}
}
@@ -76,7 +76,7 @@ impl From<OptionValue> for String {
fn from(value: OptionValue) -> Self {
match value {
OptionValue::String(value) => value,
- _ => unreachable("Error converting OptionValue to String."),
+ _ => delta_unreachable("Error converting OptionValue to String."),
}
}
}
@@ -91,7 +91,7 @@ impl From<OptionValue> for usize {
fn from(value: OptionValue) -> Self {
match value {
OptionValue::Int(value) => value,
- _ => unreachable("Error converting OptionValue to usize."),
+ _ => delta_unreachable("Error converting OptionValue to usize."),
}
}
}