Skip to content

Commit 0b8f87a

Browse files
committed
Upgrade to Rust 1.88.0 (using let chain)
1 parent 78d7592 commit 0b8f87a

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

rust/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ If you are familiar with Cargo, you can run it directly.
1616

1717
## Notes
1818

19-
It was confirmed to work with Rust 1.85.0.
19+
It was confirmed to work with Rust 1.88.0.
2020

2121
I used the following crates and their dependent crates.
2222

rust/src/bin/p0026.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,10 +16,10 @@ fn compute(upper: i64) -> i64 {
1616
if d <= max_length {
1717
break;
1818
}
19-
if let Some(tpl @ (length, _)) = find_repetend_length(d) {
20-
if length > max_length {
21-
(max_length, ans) = tpl;
22-
}
19+
if let Some(tpl @ (length, _)) = find_repetend_length(d)
20+
&& length > max_length
21+
{
22+
(max_length, ans) = tpl;
2323
}
2424
}
2525

0 commit comments

Comments
 (0)