From: Ewan Higgs Date: Mon, 27 Feb 2017 14:27:43 +0000 (+0100) Subject: Satisfy check-style.sh X-Git-Tag: archive/raspbian/0.35.0-2+rpi1~3^2^2^2^2^2^2^2~22^2~9^2~120^2~1 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=3da5026cf2da78a635caef92a59a3ad7e77ad1de;p=cargo.git Satisfy check-style.sh --- diff --git a/tests/init.rs b/tests/init.rs index 00d636be7..73947e54c 100644 --- a/tests/init.rs +++ b/tests/init.rs @@ -96,7 +96,8 @@ fn bin_already_exists(explicit: bool, rellocation: &str, needs_bin_section: bool assert_eq!(Vec::from(content as &[u8]), new_content); let mut cargo_content = String::new(); - File::open(&paths::root().join("foo/Cargo.toml")).unwrap().read_to_string(&mut cargo_content).unwrap(); + File::open(&paths::root().join("foo/Cargo.toml")).unwrap() + .read_to_string(&mut cargo_content).unwrap(); // Check that Cargo.toml has a bin section pointing to the correct location (if needed) if needs_bin_section { assert!(cargo_content.contains(r#"[[bin]]"#)); @@ -226,7 +227,8 @@ fn lib_already_exists(rellocation: &str, needs_lib_section: bool) { assert_eq!(Vec::from(content as &[u8]), new_content); let mut cargo_content = String::new(); - File::open(&paths::root().join("foo/Cargo.toml")).unwrap().read_to_string(&mut cargo_content).unwrap(); + File::open(&paths::root().join("foo/Cargo.toml")).unwrap() + .read_to_string(&mut cargo_content).unwrap(); // Check that Cargo.toml has a lib section pointing to the correct location (if needed) if needs_lib_section { assert!(cargo_content.contains(r#"[lib]"#));