diff --git a/.github/workflows/python-release.yml b/.github/workflows/python-release.yml index dfa845a..c9e8ffb 100644 --- a/.github/workflows/python-release.yml +++ b/.github/workflows/python-release.yml @@ -6,10 +6,9 @@ name: Python PyPi Release on: - workflow_run: - workflows: ["Python PyPi Release"] - types: - - completed + push: + tags: + - v* permissions: contents: read diff --git a/bintensors/src/tensor.rs b/bintensors/src/tensor.rs index 30dc091..2b16731 100644 --- a/bintensors/src/tensor.rs +++ b/bintensors/src/tensor.rs @@ -264,7 +264,7 @@ fn prepare_with_checksum< offset += n; hmetadata.push((name.to_string(), tensor_info)); // infer digest order - hasher.update(&tensor.data().as_ref()); + hasher.update(tensor.data().as_ref()); tensors.push(tensor); } @@ -389,7 +389,7 @@ pub struct BinTensors<'data> { data: &'data [u8], } -impl<'data> core::fmt::Debug for BinTensors<'data> { +impl core::fmt::Debug for BinTensors<'_> { fn fmt(&self, f: &mut core::fmt::Formatter<'_>) -> core::fmt::Result { write!(f, "BinTensors {{ {:?} }}", self.metadata) } @@ -790,7 +790,6 @@ impl Dtype { #[cfg(test)] mod tests { - use core::usize; use super::*; use crate::slice::IndexOp;