diff --git a/src/env.rs b/src/env.rs index 557231ee..1780355f 100644 --- a/src/env.rs +++ b/src/env.rs @@ -131,7 +131,7 @@ impl Source for Environment { if let Ok(parsed) = value.to_lowercase().parse::() { ValueKind::Boolean(parsed) } else if let Ok(parsed) = value.parse::() { - ValueKind::Integer(parsed) + ValueKind::I64(parsed) } else if let Ok(parsed) = value.parse::() { ValueKind::Float(parsed) } else { diff --git a/src/file/format/json5.rs b/src/file/format/json5.rs index 33a3135b..cdf87033 100644 --- a/src/file/format/json5.rs +++ b/src/file/format/json5.rs @@ -22,7 +22,7 @@ pub fn parse( ) -> Result, Box> { match json5_rs::from_str::(&text)? { Val::String(ref value) => Err(Unexpected::Str(value.clone())), - Val::Integer(value) => Err(Unexpected::Integer(value)), + Val::Integer(value) => Err(Unexpected::I64(value)), Val::Float(value) => Err(Unexpected::Float(value)), Val::Boolean(value) => Err(Unexpected::Bool(value)), Val::Array(_) => Err(Unexpected::Seq), @@ -40,7 +40,7 @@ fn from_json5_value(uri: Option<&String>, value: Val) -> Value { let vk = match value { Val::Null => ValueKind::Nil, Val::String(v) => ValueKind::String(v), - Val::Integer(v) => ValueKind::Integer(v), + Val::Integer(v) => ValueKind::I64(v), Val::Float(v) => ValueKind::Float(v), Val::Boolean(v) => ValueKind::Boolean(v), Val::Object(table) => { diff --git a/src/file/format/ron.rs b/src/file/format/ron.rs index f7dbce3d..816b7869 100644 --- a/src/file/format/ron.rs +++ b/src/file/format/ron.rs @@ -31,7 +31,7 @@ fn from_ron_value( ron::Value::Number(value) => match value { ron::Number::Float(value) => ValueKind::Float(value.get()), - ron::Number::Integer(value) => ValueKind::Integer(value), + ron::Number::Integer(value) => ValueKind::I64(value), }, ron::Value::Char(value) => ValueKind::String(value.to_string()),