Skip to content

Commit 6b9606e

Browse files
elyaseclaude
andcommitted
chore: bump version to 0.2.1 and fix clippy warnings
- Fix needless reference operators in expressions.rs:719 and 737 - Bump version from 0.2.0 to 0.2.1 for PyPI release 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
1 parent 5906ef5 commit 6b9606e

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ build-backend = "maturin"
44

55
[project]
66
name = "polars_u256_plugin"
7-
version = "0.2.0"
7+
version = "0.2.1"
88
description = "Polars plugin for 256-bit U256 and signed I256 (two's complement) integers backed by ruint"
99
readme = "README.md"
1010
requires-python = ">=3.9"

src/expressions.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -716,7 +716,7 @@ pub fn u256_min(inputs: &[Series]) -> PolarsResult<Series> {
716716
let mut arr=[0u8;32]; arr.copy_from_slice(v);
717717
match &mut minv {
718718
None => minv = Some(arr),
719-
Some(m) => { if &arr[..] < &m[..] { *m = arr; } }
719+
Some(m) => { if arr[..] < m[..] { *m = arr; } }
720720
}
721721
}
722722
let out = match minv { Some(x) => Series::new(s0.name().clone(), [Some(x.to_vec())]), None => Series::new(s0.name().clone(), [Option::<Vec<u8>>::None]) };
@@ -734,7 +734,7 @@ pub fn u256_max(inputs: &[Series]) -> PolarsResult<Series> {
734734
let mut arr=[0u8;32]; arr.copy_from_slice(v);
735735
match &mut maxv {
736736
None => maxv = Some(arr),
737-
Some(m) => { if &arr[..] > &m[..] { *m = arr; } }
737+
Some(m) => { if arr[..] > m[..] { *m = arr; } }
738738
}
739739
}
740740
let out = match maxv { Some(x) => Series::new(s0.name().clone(), [Some(x.to_vec())]), None => Series::new(s0.name().clone(), [Option::<Vec<u8>>::None]) };

0 commit comments

Comments
 (0)