mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-10-01 06:11:35 +00:00
Fix new nightly lints
This commit is contained in:
parent
232432411e
commit
6c23f25e7f
24 changed files with 81 additions and 51 deletions
|
@ -401,7 +401,7 @@ struct Writer<'a, 'span, S: InternableSpan> {
|
|||
text: Vec<String>,
|
||||
}
|
||||
|
||||
impl<'a, 'span, S: InternableSpan> Writer<'a, 'span, S> {
|
||||
impl<'a, S: InternableSpan> Writer<'a, '_, S> {
|
||||
fn write(&mut self, root: &'a tt::Subtree<S>) {
|
||||
self.enqueue(root);
|
||||
while let Some((idx, subtree)) = self.work.pop_front() {
|
||||
|
@ -524,7 +524,7 @@ struct Reader<'span, S: InternableSpan> {
|
|||
span_data_table: &'span S::Table,
|
||||
}
|
||||
|
||||
impl<'span, S: InternableSpan> Reader<'span, S> {
|
||||
impl<S: InternableSpan> Reader<'_, S> {
|
||||
pub(crate) fn read(self) -> tt::Subtree<S> {
|
||||
let mut res: Vec<Option<tt::Subtree<S>>> = vec![None; self.subtree.len()];
|
||||
let read_span = |id| S::span_for_token_id(self.span_data_table, id);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue