cargo clippy --fix

This commit is contained in:
Johann Hemmann 2024-01-30 14:25:28 +01:00
parent 628f70156e
commit 43b1ae0446
5 changed files with 5 additions and 5 deletions

View file

@ -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()))))
}