mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-28 12:54:58 +00:00
Run cargo fix --edition-idioms
This commit is contained in:
parent
23d25a3094
commit
816f7fe12a
230 changed files with 888 additions and 888 deletions
|
@ -15,7 +15,7 @@ use crate::MatchFinder;
|
|||
/// Attempts to build an SSR MatchFinder from a comment at the given file
|
||||
/// range. If successful, returns the MatchFinder and a TextRange covering
|
||||
/// comment.
|
||||
pub fn ssr_from_comment(db: &RootDatabase, frange: FileRange) -> Option<(MatchFinder, TextRange)> {
|
||||
pub fn ssr_from_comment(db: &RootDatabase, frange: FileRange) -> Option<(MatchFinder<'_>, TextRange)> {
|
||||
let comment = {
|
||||
let file = db.parse(frange.file_id);
|
||||
file.tree().syntax().token_at_offset(frange.range.start()).find_map(ast::Comment::cast)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue