Skip to content

Commit

Permalink
Changing single character string to a character match.
Browse files Browse the repository at this point in the history
  • Loading branch information
Unknown authored and unknown committed Feb 1, 2019
1 parent 21e2b13 commit 93a856e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions clippy_lints/src/functions.rs
Expand Up @@ -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(),
};
Expand Down

0 comments on commit 93a856e

Please sign in to comment.