aboutsummaryrefslogtreecommitdiff
path: root/crates/ra_syntax/src/fuzz.rs
diff options
context:
space:
mode:
Diffstat (limited to 'crates/ra_syntax/src/fuzz.rs')
-rw-r--r--crates/ra_syntax/src/fuzz.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/crates/ra_syntax/src/fuzz.rs b/crates/ra_syntax/src/fuzz.rs
index 6d114aad4..00039f970 100644
--- a/crates/ra_syntax/src/fuzz.rs
+++ b/crates/ra_syntax/src/fuzz.rs
@@ -21,8 +21,8 @@ pub struct CheckReparse {
21 21
22impl CheckReparse { 22impl CheckReparse {
23 pub fn from_data(data: &[u8]) -> Option<Self> { 23 pub fn from_data(data: &[u8]) -> Option<Self> {
24 const PREFIX: &'static str = "fn main(){\n\t"; 24 const PREFIX: &str = "fn main(){\n\t";
25 const SUFFIX: &'static str = "\n}"; 25 const SUFFIX: &str = "\n}";
26 26
27 let data = str::from_utf8(data).ok()?; 27 let data = str::from_utf8(data).ok()?;
28 let mut lines = data.lines(); 28 let mut lines = data.lines();