Skip to content

Commit

Permalink
fix: clippy errors
Browse files Browse the repository at this point in the history
  • Loading branch information
baszalmstra committed Dec 28, 2023
1 parent f9b0291 commit 3fa196e
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions crates/mun_hir/src/item_tree/pretty.rs
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ impl Printer<'_> {
write!(self, "::*")?;
}
match alias {
Some(ImportAlias::Alias(name)) => write!(self, " as {}", name)?,
Some(ImportAlias::Alias(name)) => write!(self, " as {name}")?,
Some(ImportAlias::Underscore) => write!(self, " as _")?,
None => {}
}
Expand All @@ -101,7 +101,7 @@ impl Printer<'_> {
ast_id: _,
} = &self.tree[it];
self.print_visibility(*visibility)?;
write!(self, "type {}", name)?;
write!(self, "type {name}")?;
if let Some(ty) = type_ref {
write!(self, " = ")?;
self.print_type_ref(*ty, types)?;
Expand All @@ -119,7 +119,7 @@ impl Printer<'_> {
ast_id: _,
} = &self.tree[it];
self.print_visibility(*visibility)?;
write!(self, "struct {}", name)?;
write!(self, "struct {name}")?;
match fields {
Fields::Record(fields) => {
self.whitespace()?;
Expand Down Expand Up @@ -171,7 +171,7 @@ impl Printer<'_> {
if *is_extern {
write!(self, "extern ")?;
}
write!(self, "fn {}", name)?;
write!(self, "fn {name}")?;
write!(self, "(")?;
if !params.is_empty() {
self.indented(|this| {
Expand Down

0 comments on commit 3fa196e

Please sign in to comment.