use a s!(..) shorthand in CLI tests

This commit is contained in:
Dustin J. Mitchell
2020-12-24 21:14:20 +00:00
parent 7e906ced22
commit 922e71cd4d
12 changed files with 65 additions and 69 deletions

View File

@@ -27,7 +27,7 @@ mod test {
let mut w = test_writer();
let mut replica = test_replica();
let modification = Modification {
description: DescriptionMod::Set("my description".to_owned()),
description: DescriptionMod::Set(s!("my description")),
..Default::default()
};
execute(&mut w, &mut replica, modification).unwrap();