settings: test without field reassignment (clippy)
This commit is contained in:
parent
d5eff1a256
commit
787d2c19fd
1 changed files with 4 additions and 2 deletions
|
|
@ -372,8 +372,10 @@ mod tests {
|
||||||
/// A database made in the background goes to the end; opening it brings it first.
|
/// A database made in the background goes to the end; opening it brings it first.
|
||||||
#[test]
|
#[test]
|
||||||
fn a_copied_database_goes_to_the_end_of_the_shelf() {
|
fn a_copied_database_goes_to_the_end_of_the_shelf() {
|
||||||
let mut s = Settings::default();
|
let mut s = Settings {
|
||||||
s.databases = vec![PathBuf::from("/a.pgn"), PathBuf::from("/b.pgn")];
|
databases: vec![PathBuf::from("/a.pgn"), PathBuf::from("/b.pgn")],
|
||||||
|
..Default::default()
|
||||||
|
};
|
||||||
s.add_database_last(Path::new("/new.pgn"));
|
s.add_database_last(Path::new("/new.pgn"));
|
||||||
s.add_database_last(Path::new("/a.pgn"));
|
s.add_database_last(Path::new("/a.pgn"));
|
||||||
assert_eq!(
|
assert_eq!(
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue