Skip to content

Commit

Permalink
Clippy.
Browse files Browse the repository at this point in the history
  • Loading branch information
Narsil committed Jan 2, 2025
1 parent 5193dbc commit 401c7e1
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion bindings/python/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ struct PyView<'a> {
data_len: usize,
}

impl<'a> View for &PyView<'a> {
impl View for &PyView<'_> {
fn data(&self) -> std::borrow::Cow<[u8]> {
Cow::Borrowed(self.data.as_bytes())
}
Expand Down
4 changes: 2 additions & 2 deletions safetensors/src/tensor.rs
Original file line number Diff line number Diff line change
Expand Up @@ -565,7 +565,7 @@ pub struct TensorView<'data> {
data: &'data [u8],
}

impl<'data> View for &TensorView<'data> {
impl View for &TensorView<'_> {
fn dtype(&self) -> Dtype {
self.dtype
}
Expand All @@ -583,7 +583,7 @@ impl<'data> View for &TensorView<'data> {
}
}

impl<'data> View for TensorView<'data> {
impl View for TensorView<'_> {
fn dtype(&self) -> Dtype {
self.dtype
}
Expand Down

0 comments on commit 401c7e1

Please sign in to comment.