Skip to content

Commit

Permalink
rustfmt
Browse files Browse the repository at this point in the history
  • Loading branch information
bnavetta committed May 5, 2020
1 parent 6f5e2b3 commit b660171
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 8 deletions.
14 changes: 11 additions & 3 deletions src/restic.rs
Original file line number Diff line number Diff line change
Expand Up @@ -172,9 +172,17 @@ mod test {
let fixture = TestFixture::new();
let restic = fixture.restic();

assert_eq!(restic.repository_exists().unwrap(), false, "Repository does not exist yet");
assert_eq!(
restic.repository_exists().unwrap(),
false,
"Repository does not exist yet"
);

restic.init().expect("Could not initialize repository");
assert_eq!(restic.repository_exists().unwrap(), true, "Repository should now exist");
assert_eq!(
restic.repository_exists().unwrap(),
true,
"Repository should now exist"
);
}
}
}
10 changes: 5 additions & 5 deletions src/test.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ use std::fs;
use std::path::{Path, PathBuf};
use std::sync::Mutex;

use slog::{Logger, Drain, o};
use slog::{o, Drain, Logger};
use slog_term::{FullFormat, TermDecorator};
use tempfile::TempDir;

Expand Down Expand Up @@ -42,7 +42,7 @@ impl TestFixture {
exclude_caches: false,
one_file_system: false,
ignore_inode: false,
retention: RetentionPolicy::default()
retention: RetentionPolicy::default(),
};

let config = Configuration {
Expand All @@ -52,7 +52,7 @@ impl TestFixture {
profiles.insert("test".into(), profile);
profiles
},
filesets: HashMap::new()
filesets: HashMap::new(),
};

let decorator = TermDecorator::new().build();
Expand All @@ -65,7 +65,7 @@ impl TestFixture {
content_root,
repository_path,
config,
logger
logger,
}
}

Expand All @@ -90,4 +90,4 @@ impl TestFixture {
pub fn restic(&self) -> Restic {
Restic::for_profile(&self.config, &self.logger, "test".to_string()).unwrap()
}
}
}

0 comments on commit b660171

Please sign in to comment.