Clean up more clippy.

This commit is contained in:
Stephen Chung
2022-07-27 18:04:59 +08:00
parent 39dee556c4
commit 2f948a784c
47 changed files with 412 additions and 377 deletions

View File

@@ -42,7 +42,7 @@ impl fmt::Debug for Namespace {
&self
.path
.iter()
.map(|m| m.as_str())
.map(Ident::as_str)
.collect::<StaticVec<_>>()
.join(Token::DoubleColon.literal_syntax()),
)
@@ -59,7 +59,7 @@ impl fmt::Display for Namespace {
&self
.path
.iter()
.map(|m| m.as_str())
.map(Ident::as_str)
.collect::<StaticVec<_>>()
.join(Token::DoubleColon.literal_syntax()),
)
@@ -126,7 +126,7 @@ impl Namespace {
/// Set the [`Scope`][crate::Scope] index offset.
#[inline(always)]
pub(crate) fn set_index(&mut self, index: Option<NonZeroUsize>) {
self.index = index
self.index = index;
}
/// Get the [position][Position] of this [`Namespace`].
///