mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-28 04:44:57 +00:00
Some clippy fixes for 1.36
This commit is contained in:
parent
c6a6e43372
commit
4ad9e986ad
31 changed files with 62 additions and 70 deletions
|
@ -21,8 +21,8 @@ pub struct CheckReparse {
|
|||
|
||||
impl CheckReparse {
|
||||
pub fn from_data(data: &[u8]) -> Option<Self> {
|
||||
const PREFIX: &'static str = "fn main(){\n\t";
|
||||
const SUFFIX: &'static str = "\n}";
|
||||
const PREFIX: &str = "fn main(){\n\t";
|
||||
const SUFFIX: &str = "\n}";
|
||||
|
||||
let data = str::from_utf8(data).ok()?;
|
||||
let mut lines = data.lines();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue