Skip to content

Commit

Permalink
fix: clippy in rust 1.82
Browse files Browse the repository at this point in the history
  • Loading branch information
Myriad-Dreamin committed Nov 29, 2024
1 parent 5eda9fd commit a3150c2
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion crates/reflexo/src/escape.rs
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ impl<'a, E: Escapes> Escaped<'a, E> {
}
}

impl<'a, E: Escapes> fmt::Display for Escaped<'a, E> {
impl<E: Escapes> fmt::Display for Escaped<'_, E> {
fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {
let mut total_remaining = self.to_escape;

Expand Down
6 changes: 3 additions & 3 deletions crates/reflexo/src/vector/ir/layout.rs
Original file line number Diff line number Diff line change
Expand Up @@ -49,11 +49,11 @@ impl LayoutRegionNode {
return None;
};

return Some(LayoutRegionPagesRAII {
Some(LayoutRegionPagesRAII {
module: Cow::Borrowed(ModuleView::new(module)),
meta: &v.0,
pages: &v.1,
});
})
}

pub fn source_mapping<'a>(
Expand Down Expand Up @@ -445,7 +445,7 @@ pub struct LayoutNestSelector<'l, T> {
pub inner: T,
}

impl<'l, T: LayoutSelector> LayoutSelector for LayoutNestSelector<'l, T> {
impl<T: LayoutSelector> LayoutSelector for LayoutNestSelector<'_, T> {
fn select_by_scalar(
&self,
kind: &str,
Expand Down
2 changes: 1 addition & 1 deletion crates/reflexo/src/vector/stream.rs
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ impl<'a> From<&'a [u8]> for RkyvStreamData<'a> {
}
}

impl<'a> AsRef<[u8]> for RkyvStreamData<'a> {
impl AsRef<[u8]> for RkyvStreamData<'_> {
#[inline]
fn as_ref(&self) -> &[u8] {
match self {
Expand Down

0 comments on commit a3150c2

Please sign in to comment.