Skip to content

Commit 88cc1f3

Browse files
committed
Apply clippy suggestions
1 parent 56f17db commit 88cc1f3

File tree

3 files changed

+1
-13
lines changed

3 files changed

+1
-13
lines changed

vhdl_lang/src/analysis/overloaded.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -367,7 +367,7 @@ impl<'a> AnalyzeContext<'a> {
367367
return Ok(Disambiguated::Unambiguous(ent));
368368
} else if strict_ok_assoc_types.is_empty() {
369369
// Do not disambiguate away to emtpy result
370-
strict_ok_assoc_types = ok_return_type.clone();
370+
strict_ok_assoc_types.clone_from(&ok_return_type);
371371
}
372372

373373
Ok(Disambiguated::Ambiguous(

vhdl_lang/src/ast/util.rs

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -210,10 +210,6 @@ pub trait HasPrimaryIdent {
210210
fn primary_name(&self) -> &Symbol {
211211
&self.primary_ident().item
212212
}
213-
/// The position of the primary name in the secondary unit declaration
214-
fn primary_pos(&self) -> &SrcPos {
215-
&self.primary_ident().pos
216-
}
217213
}
218214

219215
impl HasPrimaryIdent for ArchitectureBody {

vhdl_lang/src/syntax/tokens/tokenstream.rs

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -306,8 +306,6 @@ pub trait Recover<T> {
306306
fn or_recover_until<F>(self, ctx: &mut ParsingContext<'_>, cond: F) -> DiagnosticResult<T>
307307
where
308308
F: Fn(Kind) -> bool;
309-
310-
fn log(self, msgs: &mut dyn DiagnosticHandler);
311309
}
312310

313311
impl<T> Recover<T> for DiagnosticResult<T> {
@@ -329,12 +327,6 @@ impl<T> Recover<T> for DiagnosticResult<T> {
329327
}
330328
}
331329
}
332-
333-
fn log(self, msgs: &mut dyn DiagnosticHandler) {
334-
if let Err(err) = self {
335-
msgs.push(err)
336-
}
337-
}
338330
}
339331

340332
#[cfg(test)]

0 commit comments

Comments
 (0)