mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-26 08:44:35 +00:00
Changing single character string to a character match.
This commit is contained in:
parent
21e2b13125
commit
93a856e9d5
@ -189,11 +189,11 @@ impl<'a, 'tcx> Functions {
|
||||
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(),
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user