summaryrefslogtreecommitdiff
path: root/2018/src/day9.rs
diff options
context:
space:
mode:
Diffstat (limited to '2018/src/day9.rs')
-rw-r--r--2018/src/day9.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/2018/src/day9.rs b/2018/src/day9.rs
index 2432007..114f1c7 100644
--- a/2018/src/day9.rs
+++ b/2018/src/day9.rs
@@ -110,7 +110,7 @@ impl<T: Copy> Chain<T> {
}
impl<T: Copy + fmt::Display> fmt::Display for Chain<T> {
- fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
+ fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {
if self.left.len() == 0 {
if self.right.len() == 0 { return Ok(()); }
write!(f, "({})", self.right[0])?;