Skip to content

Commit

Permalink
Apply clippy suggestions
Browse files Browse the repository at this point in the history
  • Loading branch information
Schottkyc137 committed May 4, 2024
1 parent 56f17db commit 88cc1f3
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 13 deletions.
2 changes: 1 addition & 1 deletion vhdl_lang/src/analysis/overloaded.rs
Original file line number Diff line number Diff line change
Expand Up @@ -367,7 +367,7 @@ impl<'a> AnalyzeContext<'a> {
return Ok(Disambiguated::Unambiguous(ent));
} else if strict_ok_assoc_types.is_empty() {
// Do not disambiguate away to emtpy result
strict_ok_assoc_types = ok_return_type.clone();
strict_ok_assoc_types.clone_from(&ok_return_type);
}

Ok(Disambiguated::Ambiguous(
Expand Down
4 changes: 0 additions & 4 deletions vhdl_lang/src/ast/util.rs
Original file line number Diff line number Diff line change
Expand Up @@ -210,10 +210,6 @@ pub trait HasPrimaryIdent {
fn primary_name(&self) -> &Symbol {
&self.primary_ident().item
}
/// The position of the primary name in the secondary unit declaration
fn primary_pos(&self) -> &SrcPos {
&self.primary_ident().pos
}
}

impl HasPrimaryIdent for ArchitectureBody {
Expand Down
8 changes: 0 additions & 8 deletions vhdl_lang/src/syntax/tokens/tokenstream.rs
Original file line number Diff line number Diff line change
Expand Up @@ -306,8 +306,6 @@ pub trait Recover<T> {
fn or_recover_until<F>(self, ctx: &mut ParsingContext<'_>, cond: F) -> DiagnosticResult<T>
where
F: Fn(Kind) -> bool;

fn log(self, msgs: &mut dyn DiagnosticHandler);
}

impl<T> Recover<T> for DiagnosticResult<T> {
Expand All @@ -329,12 +327,6 @@ impl<T> Recover<T> for DiagnosticResult<T> {
}
}
}

fn log(self, msgs: &mut dyn DiagnosticHandler) {
if let Err(err) = self {
msgs.push(err)
}
}
}

#[cfg(test)]
Expand Down

0 comments on commit 88cc1f3

Please sign in to comment.