@@ -125,11 +125,7 @@ fn cargo_compile_offline_with_cached_git_dep() {
125125 // Commit the changes and make sure we trigger a recompile
126126 File :: create ( & git_project. root ( ) . join ( "src/lib.rs" ) )
127127 . unwrap ( )
128- . write_all (
129- br#"
130- pub static COOL_STR:&str = "cached git repo rev2";
131- "# ,
132- )
128+ . write_all ( br#"pub static COOL_STR:&str = "cached git repo rev2";"# )
133129 . unwrap ( ) ;
134130 git:: add ( & repo) ;
135131 let rev2 = git:: commit ( & repo) ;
@@ -657,11 +653,7 @@ fn two_revs_same_deps() {
657653 // Commit the changes and make sure we trigger a recompile
658654 File :: create ( & bar. root ( ) . join ( "src/lib.rs" ) )
659655 . unwrap ( )
660- . write_all (
661- br#"
662- pub fn bar() -> i32 { 2 }
663- "# ,
664- )
656+ . write_all ( br#"pub fn bar() -> i32 { 2 }"# )
665657 . unwrap ( ) ;
666658 git:: add ( & repo) ;
667659 let rev2 = git:: commit ( & repo) ;
@@ -784,11 +776,7 @@ fn recompilation() {
784776 // Modify a file manually, shouldn't trigger a recompile
785777 File :: create ( & git_project. root ( ) . join ( "src/bar.rs" ) )
786778 . unwrap ( )
787- . write_all (
788- br#"
789- pub fn bar() { println!("hello!"); }
790- "# ,
791- )
779+ . write_all ( br#"pub fn bar() { println!("hello!"); }"# )
792780 . unwrap ( ) ;
793781
794782 assert_that ( p. cargo ( "build" ) , execs ( ) . with_stdout ( "" ) ) ;
@@ -940,11 +928,7 @@ fn update_with_shared_deps() {
940928 // Modify a file manually, and commit it
941929 File :: create ( & git_project. root ( ) . join ( "src/bar.rs" ) )
942930 . unwrap ( )
943- . write_all (
944- br#"
945- pub fn bar() { println!("hello!"); }
946- "# ,
947- )
931+ . write_all ( br#"pub fn bar() { println!("hello!"); }"# )
948932 . unwrap ( ) ;
949933 let repo = git2:: Repository :: open ( & git_project. root ( ) ) . unwrap ( ) ;
950934 let old_head = repo. head ( ) . unwrap ( ) . target ( ) . unwrap ( ) ;
@@ -1204,11 +1188,7 @@ fn two_deps_only_update_one() {
12041188
12051189 File :: create ( & git1. root ( ) . join ( "src/lib.rs" ) )
12061190 . unwrap ( )
1207- . write_all (
1208- br#"
1209- pub fn foo() {}
1210- "# ,
1211- )
1191+ . write_all ( br#"pub fn foo() {}"# )
12121192 . unwrap ( ) ;
12131193 let repo = git2:: Repository :: open ( & git1. root ( ) ) . unwrap ( ) ;
12141194 git:: add ( & repo) ;
@@ -1268,11 +1248,7 @@ fn stale_cached_version() {
12681248 // us pulling it down.
12691249 File :: create ( & bar. root ( ) . join ( "src/lib.rs" ) )
12701250 . unwrap ( )
1271- . write_all (
1272- br#"
1273- pub fn bar() -> i32 { 1 + 0 }
1274- "# ,
1275- )
1251+ . write_all ( br#"pub fn bar() -> i32 { 1 + 0 }"# )
12761252 . unwrap ( ) ;
12771253 let repo = git2:: Repository :: open ( & bar. root ( ) ) . unwrap ( ) ;
12781254 git:: add ( & repo) ;
@@ -1657,11 +1633,7 @@ fn git_repo_changing_no_rebuild() {
16571633 // Make a commit to lock p2 to a different rev
16581634 File :: create ( & bar. root ( ) . join ( "src/lib.rs" ) )
16591635 . unwrap ( )
1660- . write_all (
1661- br#"
1662- pub fn bar() -> i32 { 2 }
1663- "# ,
1664- )
1636+ . write_all ( br#"pub fn bar() -> i32 { 2 }"# )
16651637 . unwrap ( ) ;
16661638 let repo = git2:: Repository :: open ( & bar. root ( ) ) . unwrap ( ) ;
16671639 git:: add ( & repo) ;
@@ -2121,11 +2093,7 @@ fn update_one_source_updates_all_packages_in_that_git_source() {
21212093 // Just be sure to change a file
21222094 File :: create ( & dep. root ( ) . join ( "src/lib.rs" ) )
21232095 . unwrap ( )
2124- . write_all (
2125- br#"
2126- pub fn bar() -> i32 { 2 }
2127- "# ,
2128- )
2096+ . write_all ( br#"pub fn bar() -> i32 { 2 }"# )
21292097 . unwrap ( ) ;
21302098 git:: add ( & repo) ;
21312099 git:: commit ( & repo) ;
0 commit comments