diff options
author | Aleksey Kladov <[email protected]> | 2020-11-02 15:31:38 +0000 |
---|---|---|
committer | Aleksey Kladov <[email protected]> | 2020-11-02 15:58:33 +0000 |
commit | ba8d6d1e4ea2590b31470171efc175b0301c5e1c (patch) | |
tree | 6304a61e803e5adf802abce8ae2d7066a2c5fef8 /crates/ide/src/matching_brace.rs | |
parent | 731b38fa3c1694648e6c8e60f61820f9783343eb (diff) |
Remove more unreachable pubs
Diffstat (limited to 'crates/ide/src/matching_brace.rs')
-rw-r--r-- | crates/ide/src/matching_brace.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/crates/ide/src/matching_brace.rs b/crates/ide/src/matching_brace.rs index cb6abb0db..d70248afe 100644 --- a/crates/ide/src/matching_brace.rs +++ b/crates/ide/src/matching_brace.rs | |||
@@ -15,7 +15,7 @@ use test_utils::mark; | |||
15 | // | 15 | // |
16 | // | VS Code | **Rust Analyzer: Find matching brace** | 16 | // | VS Code | **Rust Analyzer: Find matching brace** |
17 | // |=== | 17 | // |=== |
18 | pub fn matching_brace(file: &SourceFile, offset: TextSize) -> Option<TextSize> { | 18 | pub(crate) fn matching_brace(file: &SourceFile, offset: TextSize) -> Option<TextSize> { |
19 | const BRACES: &[SyntaxKind] = | 19 | const BRACES: &[SyntaxKind] = |
20 | &[T!['{'], T!['}'], T!['['], T![']'], T!['('], T![')'], T![<], T![>], T![|], T![|]]; | 20 | &[T!['{'], T!['}'], T!['['], T![']'], T!['('], T![')'], T![<], T![>], T![|], T![|]]; |
21 | let (brace_token, brace_idx) = file | 21 | let (brace_token, brace_idx) = file |