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

@@ -33,14 +33,14 @@ mod test {
let mut replica = test_replica();
let task = replica
.new_task(Status::Pending, "old description".to_owned())
.new_task(Status::Pending, s!("old description"))
.unwrap();
let filter = Filter {
..Default::default()
};
let modification = Modification {
description: DescriptionMod::Set("new description".to_owned()),
description: DescriptionMod::Set(s!("new description")),
..Default::default()
};
execute(&mut w, &mut replica, filter, modification).unwrap();