Appease clippy
This commit is contained in:
parent
eeb21af841
commit
233b28a1b9
19 changed files with 49 additions and 52 deletions
|
@ -62,7 +62,7 @@ fn parse_snippet<'a>(
|
|||
}
|
||||
}
|
||||
Some(_) => {
|
||||
let chunk_end = source.find(&['}', '$', '\\']).unwrap_or(source.len());
|
||||
let chunk_end = source.find(['}', '$', '\\']).unwrap_or(source.len());
|
||||
let (chunk, rest) = source.split_at(chunk_end);
|
||||
text.push_str(chunk);
|
||||
source = rest;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue