mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-28 21:05:02 +00:00
cargo clippy --fix
This commit is contained in:
parent
628f70156e
commit
43b1ae0446
5 changed files with 5 additions and 5 deletions
|
@ -235,7 +235,7 @@ impl Attr {
|
|||
let (path, input) = tt.split_at(path_end);
|
||||
let path = Interned::new(ModPath::from_tt(db, path)?);
|
||||
|
||||
let input = match input.get(0) {
|
||||
let input = match input.first() {
|
||||
Some(tt::TokenTree::Subtree(tree)) => {
|
||||
Some(Interned::new(AttrInput::TokenTree(Box::new(tree.clone()))))
|
||||
}
|
||||
|
|
|
@ -232,7 +232,7 @@ fn convert_path(
|
|||
ast::PathSegmentKind::SuperKw => {
|
||||
let mut deg = 1;
|
||||
let mut next_segment = None;
|
||||
while let Some(segment) = segments.next() {
|
||||
for segment in segments.by_ref() {
|
||||
match segment.kind()? {
|
||||
ast::PathSegmentKind::SuperKw => deg += 1,
|
||||
ast::PathSegmentKind::Name(name) => {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue