Skip to content

Commit 3da5026

Browse files
committed
Satisfy check-style.sh
1 parent 7e80c68 commit 3da5026

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

tests/init.rs

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,8 @@ fn bin_already_exists(explicit: bool, rellocation: &str, needs_bin_section: bool
9696
assert_eq!(Vec::from(content as &[u8]), new_content);
9797

9898
let mut cargo_content = String::new();
99-
File::open(&paths::root().join("foo/Cargo.toml")).unwrap().read_to_string(&mut cargo_content).unwrap();
99+
File::open(&paths::root().join("foo/Cargo.toml")).unwrap()
100+
.read_to_string(&mut cargo_content).unwrap();
100101
// Check that Cargo.toml has a bin section pointing to the correct location (if needed)
101102
if needs_bin_section {
102103
assert!(cargo_content.contains(r#"[[bin]]"#));
@@ -226,7 +227,8 @@ fn lib_already_exists(rellocation: &str, needs_lib_section: bool) {
226227
assert_eq!(Vec::from(content as &[u8]), new_content);
227228

228229
let mut cargo_content = String::new();
229-
File::open(&paths::root().join("foo/Cargo.toml")).unwrap().read_to_string(&mut cargo_content).unwrap();
230+
File::open(&paths::root().join("foo/Cargo.toml")).unwrap()
231+
.read_to_string(&mut cargo_content).unwrap();
230232
// Check that Cargo.toml has a lib section pointing to the correct location (if needed)
231233
if needs_lib_section {
232234
assert!(cargo_content.contains(r#"[lib]"#));

0 commit comments

Comments
 (0)