aboutsummaryrefslogtreecommitdiffstats
path: root/src/sleep.rs
diff options
context:
space:
mode:
authorBryan Newbold <bnewbold@robocracy.org>2017-10-26 20:29:48 -0700
committerBryan Newbold <bnewbold@robocracy.org>2017-10-26 20:29:48 -0700
commitd95adfa86a4a903a20120a93b8d10ae39fb6cd3d (patch)
tree6f2487adaab52cc27c7ad5009ab9496d247d037f /src/sleep.rs
parent3a6fa9cdf581dd3f7f8156190f33d2617c156cd6 (diff)
downloadgeniza-d95adfa86a4a903a20120a93b8d10ae39fb6cd3d.tar.gz
geniza-d95adfa86a4a903a20120a93b8d10ae39fb6cd3d.zip
small lint cleanups
Diffstat (limited to 'src/sleep.rs')
-rw-r--r--src/sleep.rs12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/sleep.rs b/src/sleep.rs
index 1c10b3e..36bf7a9 100644
--- a/src/sleep.rs
+++ b/src/sleep.rs
@@ -163,7 +163,7 @@ impl SleepStorage for SleepFile {
#[test]
fn test_sleep_open() {
- let mut sf = SleepFile::open(
+ let sf = SleepFile::open(
Path::new("test-data/sleep/empty/empty.sleep"), false).unwrap();
assert_eq!(sf.len().unwrap(), 0);
@@ -171,7 +171,7 @@ fn test_sleep_open() {
assert_eq!(sf.get_algorithm(), None);
assert_eq!(sf.get_entry_size(), 1);
- let mut sf = SleepFile::open(
+ let sf = SleepFile::open(
Path::new("test-data/dat/simple/.dat/metadata.tree"), false).unwrap();
// Calculated from 'dat log'
@@ -187,17 +187,17 @@ fn test_sleep_create() {
use tempdir::TempDir;
let tmp_dir = TempDir::new("geniza-test").unwrap();
- let mut sf = SleepFile::create(
+ SleepFile::create(
&tmp_dir.path().join("empty2.sleep"),
0x050257FF,
1,
- None);
+ None).unwrap();
// TODO: binary diff against 'test-data/sleep/empty/empty.sleep'
- let mut sf = SleepFile::create(
+ SleepFile::create(
&tmp_dir.path().join("simple_metadata.sleep"),
0x05025702,
40,
- Some("BLAKE2b".into()));
+ Some("BLAKE2b".into())).unwrap();
}