summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatthias Beyer <mail@beyermatthias.de>2021-03-14 11:00:28 +0100
committerMatthias Beyer <mail@beyermatthias.de>2021-03-14 11:00:28 +0100
commit7c376274911ea131269864cfeeeb6e5ac33e35de (patch)
tree1042e6863f79a3634a5672f10ff393fceca12a9f
parent116b860bc40e283518243139fe54ac5a0be8c6d6 (diff)
downloadconfig-maint-integers.tar.gz
config-maint-integers.tar.xz
fixup! Add support for different sized integersintegers
-rw-r--r--src/value.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/value.rs b/src/value.rs
index c02da73..ea6e0dd 100644
--- a/src/value.rs
+++ b/src/value.rs
@@ -240,7 +240,7 @@ impl Value {
ValueKind::I16(value) => Ok(value as i64),
ValueKind::I32(value) => Ok(value as i64),
ValueKind::I64(value) => Ok(value),
- ValueKind::I128(value) => Err(ConfigError::invalid_type(self.origin.clone(), Unexpected::I128(value), "an 64 bit or less integer")),
+ ValueKind::I128(value) => Err(ConfigError::invalid_type(self.origin, Unexpected::I128(value), "an 64 bit or less integer")),
ValueKind::String(ref s) => {
match s.to_lowercase().as_ref() {