Skip to content

Commit

Permalink
fixup! Add test whether unreachable is reachable
Browse files Browse the repository at this point in the history
  • Loading branch information
matthiasbeyer committed Mar 19, 2021
1 parent fbbfdc2 commit a596044
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions src/de.rs
Original file line number Diff line number Diff line change
Expand Up @@ -467,10 +467,9 @@ impl<'de> de::Deserializer<'de> for Config {
#[cfg(test)]
mod tests {
use super::*;
use crate::Config;
use crate::File;
use crate::FileFormat;
use crate::Config;


#[derive(Deserialize)]
struct CFG {
Expand All @@ -490,7 +489,8 @@ mod tests {
"#;

let mut c = Config::default();
c.merge(File::from_str(working_config, FileFormat::Toml)).unwrap();
c.merge(File::from_str(working_config, FileFormat::Toml))
.unwrap();
let c: CFG = c.try_into().unwrap();
}
#[test]
Expand All @@ -500,7 +500,8 @@ mod tests {
"#;

let mut c = Config::default();
c.merge(File::from_str(working_config, FileFormat::Toml)).unwrap();
c.merge(File::from_str(working_config, FileFormat::Toml))
.unwrap();
let c: CFG = c.try_into().unwrap();
}

Expand All @@ -512,8 +513,8 @@ mod tests {
"#;

let mut c = Config::default();
c.merge(File::from_str(panicing_config, FileFormat::Toml)).unwrap();
c.merge(File::from_str(panicing_config, FileFormat::Toml))
.unwrap();
let c: CFG = c.try_into().unwrap();
}

}

0 comments on commit a596044

Please sign in to comment.