@@ -74,9 +74,7 @@ pub fn program_item_ids(program: &Program) -> impl Iterator<Item = RecordedItemI
74
74
75
75
// then discard the RawId since the RecordedItemId has the same information,
76
76
// 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)
80
78
}
81
79
82
80
/// 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 {
146
144
let produced = format ! ( "{:#?}" , produced) ;
147
145
for line in diff:: lines ( & original, & produced) {
148
146
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) ,
152
150
}
153
151
. expect ( "writing to string never fails" ) ;
154
152
}
0 commit comments