diff options
author | Conrad Ludgate <conradludgate@gmail.com> | 2021-11-23 07:59:24 +0000 |
---|---|---|
committer | Conrad Ludgate <conradludgate@gmail.com> | 2021-11-23 08:01:56 +0000 |
commit | 011227f9418eb096960e0f47f9214e3376db337c (patch) | |
tree | ac4e2b8af643a7a560373374c936f3dd2a9a5e87 /src | |
parent | 3b60b9f5575ae60a672f006040707af423f67390 (diff) |
update tests not use deprecated methods
Diffstat (limited to 'src')
-rw-r--r-- | src/value.rs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/value.rs b/src/value.rs index 6825284..cc1a1f4 100644 --- a/src/value.rs +++ b/src/value.rs @@ -836,7 +836,6 @@ impl Display for Value { #[cfg(test)] mod tests { - use super::Value; use super::ValueKind; use crate::Config; use crate::File; @@ -844,8 +843,9 @@ mod tests { #[test] fn test_i64() { - let mut c = Config::default(); - c.merge(File::new("tests/types/i64.toml", FileFormat::Toml)) + let c = Config::builder() + .add_source(File::new("tests/types/i64.toml", FileFormat::Toml)) + .build() .unwrap(); assert!(std::matches!(c.cache.kind, ValueKind::Table(_))); |