Skip to content

chore: fix action bug #4

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Apr 2, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 3 additions & 4 deletions .github/workflows/python-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,9 @@
name: Python PyPi Release

on:
workflow_run:
workflows: ["Python PyPi Release"]
types:
- completed
push:
tags:
- v*

permissions:
contents: read
Expand Down
5 changes: 2 additions & 3 deletions bintensors/src/tensor.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}

Expand Down Expand Up @@ -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)
}
Expand Down Expand Up @@ -790,7 +790,6 @@ impl Dtype {

#[cfg(test)]
mod tests {
use core::usize;

use super::*;
use crate::slice::IndexOp;
Expand Down
Loading