Skip to content

Commit 95a9518

Browse files
committed
liballoc: elide &'static.
1 parent e70c2fb commit 95a9518

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/liballoc/tests/str.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -586,7 +586,7 @@ mod slice_index {
586586
}
587587

588588
mod boundary {
589-
const DATA: &'static str = "abcαβγ";
589+
const DATA: &str = "abcαβγ";
590590

591591
const BAD_START: usize = 4;
592592
const GOOD_START: usize = 3;
@@ -650,7 +650,7 @@ mod slice_index {
650650
}
651651
}
652652

653-
const LOREM_PARAGRAPH: &'static str = "\
653+
const LOREM_PARAGRAPH: &str = "\
654654
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Suspendisse quis lorem \
655655
sit amet dolor ultricies condimentum. Praesent iaculis purus elit, ac malesuada \
656656
quam malesuada in. Duis sed orci eros. Suspendisse sit amet magna mollis, mollis \

0 commit comments

Comments
 (0)