Skip to content

Commit 46e9e7a

Browse files
Clippy says to remove this and all tests still pass (#997)
1 parent a4f2a3f commit 46e9e7a

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

exercises/parallel-letter-frequency/benches/benchmark.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ fn all_texts(repeat: usize) -> Vec<&'static str> {
6666
}
6767

6868
// Poem by Friedrich Schiller. The corresponding music is the European Anthem.
69-
pub const ODE_AN_DIE_FREUDE: [&'static str; 8] = [
69+
pub const ODE_AN_DIE_FREUDE: [&str; 8] = [
7070
"Freude schöner Götterfunken",
7171
"Tochter aus Elysium,",
7272
"Wir betreten feuertrunken,",
@@ -78,7 +78,7 @@ pub const ODE_AN_DIE_FREUDE: [&'static str; 8] = [
7878
];
7979

8080
// Dutch national anthem
81-
pub const WILHELMUS: [&'static str; 8] = [
81+
pub const WILHELMUS: [&str; 8] = [
8282
"Wilhelmus van Nassouwe",
8383
"ben ik, van Duitsen bloed,",
8484
"den vaderland getrouwe",
@@ -90,7 +90,7 @@ pub const WILHELMUS: [&'static str; 8] = [
9090
];
9191

9292
// American national anthem
93-
pub const STAR_SPANGLED_BANNER: [&'static str; 8] = [
93+
pub const STAR_SPANGLED_BANNER: [&str; 8] = [
9494
"O say can you see by the dawn's early light,",
9595
"What so proudly we hailed at the twilight's last gleaming,",
9696
"Whose broad stripes and bright stars through the perilous fight,",

0 commit comments

Comments
 (0)