Skip to content

Commit a596044

Browse files
committed
fixup! Add test whether unreachable is reachable
1 parent fbbfdc2 commit a596044

File tree

1 file changed

+7
-6
lines changed

1 file changed

+7
-6
lines changed

src/de.rs

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -467,10 +467,9 @@ impl<'de> de::Deserializer<'de> for Config {
467467
#[cfg(test)]
468468
mod tests {
469469
use super::*;
470+
use crate::Config;
470471
use crate::File;
471472
use crate::FileFormat;
472-
use crate::Config;
473-
474473

475474
#[derive(Deserialize)]
476475
struct CFG {
@@ -490,7 +489,8 @@ mod tests {
490489
"#;
491490

492491
let mut c = Config::default();
493-
c.merge(File::from_str(working_config, FileFormat::Toml)).unwrap();
492+
c.merge(File::from_str(working_config, FileFormat::Toml))
493+
.unwrap();
494494
let c: CFG = c.try_into().unwrap();
495495
}
496496
#[test]
@@ -500,7 +500,8 @@ mod tests {
500500
"#;
501501

502502
let mut c = Config::default();
503-
c.merge(File::from_str(working_config, FileFormat::Toml)).unwrap();
503+
c.merge(File::from_str(working_config, FileFormat::Toml))
504+
.unwrap();
504505
let c: CFG = c.try_into().unwrap();
505506
}
506507

@@ -512,8 +513,8 @@ mod tests {
512513
"#;
513514

514515
let mut c = Config::default();
515-
c.merge(File::from_str(panicing_config, FileFormat::Toml)).unwrap();
516+
c.merge(File::from_str(panicing_config, FileFormat::Toml))
517+
.unwrap();
516518
let c: CFG = c.try_into().unwrap();
517519
}
518-
519520
}

0 commit comments

Comments
 (0)