@@ -74,9 +74,7 @@ pub fn program_item_ids(program: &Program) -> impl Iterator<Item = RecordedItemI
7474
7575 // then discard the RawId since the RecordedItemId has the same information,
7676 // and is what we actually want to consume.
77- let ids = ids. into_iter ( ) . map ( |( _, id) | id) ;
78-
79- ids
77+ ids. into_iter ( ) . map ( |( _, id) | id)
8078}
8179
8280/// Sends all items in a `chalk_integration::Program` through `display` code and
@@ -146,9 +144,9 @@ fn program_diff(original: &impl Debug, produced: &impl Debug) -> String {
146144 let produced = format ! ( "{:#?}" , produced) ;
147145 for line in diff:: lines ( & original, & produced) {
148146 match line {
149- diff:: Result :: Left ( l) => write ! ( out, "-{}\n " , l) ,
150- diff:: Result :: Both ( l, _) => write ! ( out, " {}\n " , l) ,
151- diff:: Result :: Right ( r) => write ! ( out, "+{}\n " , r) ,
147+ diff:: Result :: Left ( l) => writeln ! ( out, "-{}" , l) ,
148+ diff:: Result :: Both ( l, _) => writeln ! ( out, " {}" , l) ,
149+ diff:: Result :: Right ( r) => writeln ! ( out, "+{}" , r) ,
152150 }
153151 . expect ( "writing to string never fails" ) ;
154152 }
0 commit comments