Skip to content

Commit

Permalink
testing: use result
Browse files Browse the repository at this point in the history
Signed-off-by: simonsan <[email protected]>
  • Loading branch information
simonsan committed Dec 31, 2023
1 parent f088e20 commit 199b6f0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/config.rs
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ use std::{fs, path::PathBuf};
#[rstest]
fn test_parse_rustic_configs_is_ok(#[files("config/*.toml")] config_path: PathBuf) -> Result<()> {
let toml_string = fs::read_to_string(config_path)?;
let _ = toml::from_str::<RusticConfig>(&toml_string);
let _ = toml::from_str::<RusticConfig>(&toml_string)?;

Ok(())
}

0 comments on commit 199b6f0

Please sign in to comment.