format with rustfmt 1.0.1-nightly (be13559 2018-12-10)
Change-Id: Idb8a79185ffd3ca5d0a85c4c5bbb33982ddd7a71
diff --git a/src/client.rs b/src/client.rs
index aa7fc2f..a4032ad 100644
--- a/src/client.rs
+++ b/src/client.rs
@@ -139,12 +139,8 @@
let root_path = MetadataPath::from_role(&Role::Root);
let root_version = MetadataVersion::Number(1);
- let root = await!(local.fetch_metadata(
- &root_path,
- &root_version,
- &config.max_root_size,
- None,
- ))?;
+ let root =
+ await!(local.fetch_metadata(&root_path, &root_version, &config.max_root_size, None))?;
let tuf = Tuf::from_root(root)?;
@@ -441,10 +437,7 @@
await!(self.lookup_target_description(false, 0, &virt, &snapshot, None));
let target_description = target_description?;
- await!(self.remote.fetch_target(
- target,
- &target_description,
- ))
+ await!(self.remote.fetch_target(target, &target_description))
}
async fn lookup_target_description<'a>(
@@ -573,7 +566,8 @@
target,
snapshot,
Some(meta.as_ref()),
- )) as TufFuture<(bool, Result<TargetDescription>)>);
+ ))
+ as TufFuture<(bool, Result<TargetDescription>)>);
if term && res.is_err() {
return (true, res);
diff --git a/src/repository.rs b/src/repository.rs
index 93d5c0b..5d1babc 100644
--- a/src/repository.rs
+++ b/src/repository.rs
@@ -701,8 +701,7 @@
// This is needed for `tempfile` on Windows, which doesn't open the
// files in a mode that allows the file to be opened multiple times.
{
- let mut read =
- await!(repo.fetch_target(&path, &target_description)).unwrap();
+ let mut read = await!(repo.fetch_target(&path, &target_description)).unwrap();
await!(read.read_to_end(&mut buf)).unwrap();
assert_eq!(buf.as_slice(), data);
}