mirror of
https://github.com/rust-lang/rust.git
synced 2026-05-15 12:39:31 +03:00
Changing single character string to a character match.
This commit is contained in:
@@ -189,11 +189,11 @@ fn check_line_number(self, cx: &LateContext<'_, '_>, span: Span) {
|
||||
let mut code_in_line;
|
||||
|
||||
// Skip the surrounding function decl.
|
||||
let start_brace_idx = match code_snippet.find("{") {
|
||||
let start_brace_idx = match code_snippet.find('{') {
|
||||
Some(i) => i + 1,
|
||||
None => 0,
|
||||
};
|
||||
let end_brace_idx = match code_snippet.find("}") {
|
||||
let end_brace_idx = match code_snippet.find('}') {
|
||||
Some(i) => i,
|
||||
None => code_snippet.len(),
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user