Skip to content

Commit 63a6046

Browse files
committed
decimal: remove 'static lifetime of const
clippy: error: constants have by default a `'static` lifetime note: `#[deny(clippy::redundant_static_lifetimes)]` implied by `#[deny(clippy::all)]` help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_static_lifetimes Actually, I'm not sure why this wasn't found when running clippy on all exercises in master...
1 parent 1d09365 commit 63a6046

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

exercises/decimal/tests/decimal.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ fn decimal(input: &str) -> Decimal {
88
}
99

1010
/// Some big and precise values we can use for testing. [0] + [1] == [2]
11-
const BIGS: [&'static str; 3] = [
11+
const BIGS: [&str; 3] = [
1212
"100000000000000000000000000000000000000000000.00000000000000000000000000000000000000001",
1313
"100000000000000000000000000000000000000000000.00000000000000000000000000000000000000002",
1414
"200000000000000000000000000000000000000000000.00000000000000000000000000000000000000003",

0 commit comments

Comments
 (0)