Skip to content

Commit

Permalink
Fix clippy warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
k0aki committed Aug 14, 2023
1 parent 9aff428 commit 819ca2b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion crates/ir/src/graphviz/block.rs
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ impl<'a> BlockNode<'a> {

impl<'a> BlockNode<'a> {
pub(super) fn label(self) -> label::Text<'static> {
let Self { block, cfg, func } = self;
let Self { block, func, .. } = self;
let Function {
sig, dfg, layout, ..
} = func;
Expand Down
2 changes: 1 addition & 1 deletion crates/ir/src/graphviz/function.rs
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ impl<'a> Labeller<'a> for FunctionGraph<'a> {
type Subgraph = ();

fn graph_id(&self) -> dot2::Result<Id<'a>> {
let Self { func, cfg } = *self;
let func = self.func;
let sig_name = func.sig.name().to_string();
Id::new(sig_name)
}
Expand Down

0 comments on commit 819ca2b

Please sign in to comment.