Skip to content

Commit ee15a01

Browse files
committed
Update benchmark and fix lint
1 parent a8a3007 commit ee15a01

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -263,7 +263,7 @@ Performance is reasonable even on older hardware, for example a 2011 MacBook Pro
263263
| Day | Problem | Solution | Benchmark (μs) |
264264
| --- | --- | --- | --: |
265265
| 1 | [Chronal Calibration](https://adventofcode.com/2018/day/1) | [Source](src/year2018/day01.rs) | 16 |
266-
| 2 | [Inventory Management System](https://adventofcode.com/2018/day/2) | [Source](src/year2018/day02.rs) | 78 |
266+
| 2 | [Inventory Management System](https://adventofcode.com/2018/day/2) | [Source](src/year2018/day02.rs) | 56 |
267267
| 3 | [No Matter How You Slice It](https://adventofcode.com/2018/day/3) | [Source](src/year2018/day03.rs) | 55 |
268268
| 4 | [Repose Record](https://adventofcode.com/2018/day/4) | [Source](src/year2018/day04.rs) | 46 |
269269
| 5 | [Alchemical Reduction](https://adventofcode.com/2018/day/5) | [Source](src/year2018/day05.rs) | 390 |

src/year2018/day02.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ pub fn part2(input: &[&[u8]]) -> String {
5858

5959
if !seen.insert([prefix, suffix]) {
6060
// Convert to String
61-
return prefix.iter().chain(suffix).cloned().map(char::from).collect();
61+
return prefix.iter().chain(suffix).copied().map(char::from).collect();
6262
}
6363
}
6464

0 commit comments

Comments
 (0)