diff options
Diffstat (limited to 'src/test/run-pass/impl-trait/example-calendar.rs')
| -rw-r--r-- | src/test/run-pass/impl-trait/example-calendar.rs | 6 | 
1 files changed, 3 insertions, 3 deletions
| diff --git a/src/test/run-pass/impl-trait/example-calendar.rs b/src/test/run-pass/impl-trait/example-calendar.rs index 6cf06d15621..e6dd421f48f 100644 --- a/src/test/run-pass/impl-trait/example-calendar.rs +++ b/src/test/run-pass/impl-trait/example-calendar.rs @@ -310,10 +310,10 @@ trait IteratorExt: Iterator + Sized { where Self::Item: std::fmt::Display { let mut s = String::new(); if let Some(e) = self.next() { - write!(s, "{}", e); + write!(s, "{}", e).unwrap(); for e in self { s.push_str(sep); - write!(s, "{}", e); + write!(s, "{}", e).unwrap(); } } s @@ -537,7 +537,7 @@ fn format_weeks(it: impl Iterator<Item = impl DateIterator>) -> impl Iterator<It first = false; } - write!(buf, " {:>2}", d.day()); + write!(buf, " {:>2}", d.day()).unwrap(); } // Insert more filler at the end to fill up the remainder of the week, | 
