Skip to content

Commit 1fc3ad4

Browse files
authored
chore: fix action bug (#4)
I hate ci/cd :/
2 parents 78f0483 + b467649 commit 1fc3ad4

File tree

2 files changed

+5
-7
lines changed

2 files changed

+5
-7
lines changed

.github/workflows/python-release.yml

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,9 @@
66
name: Python PyPi Release
77

88
on:
9-
workflow_run:
10-
workflows: ["Python PyPi Release"]
11-
types:
12-
- completed
9+
push:
10+
tags:
11+
- v*
1312

1413
permissions:
1514
contents: read

bintensors/src/tensor.rs

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -264,7 +264,7 @@ fn prepare_with_checksum<
264264
offset += n;
265265
hmetadata.push((name.to_string(), tensor_info));
266266
// infer digest order
267-
hasher.update(&tensor.data().as_ref());
267+
hasher.update(tensor.data().as_ref());
268268
tensors.push(tensor);
269269
}
270270

@@ -389,7 +389,7 @@ pub struct BinTensors<'data> {
389389
data: &'data [u8],
390390
}
391391

392-
impl<'data> core::fmt::Debug for BinTensors<'data> {
392+
impl core::fmt::Debug for BinTensors<'_> {
393393
fn fmt(&self, f: &mut core::fmt::Formatter<'_>) -> core::fmt::Result {
394394
write!(f, "BinTensors {{ {:?} }}", self.metadata)
395395
}
@@ -790,7 +790,6 @@ impl Dtype {
790790

791791
#[cfg(test)]
792792
mod tests {
793-
use core::usize;
794793

795794
use super::*;
796795
use crate::slice::IndexOp;

0 commit comments

Comments
 (0)