feat!: Remove script crate and python feature (#5321)

* feat: exclude script crate

* chore: simplify feature

* feat: remove the script crate

* chore: remove python feature and some comments

* chore: fix warning
This commit is contained in:
Yingwen
2025-01-08 20:11:53 +08:00
committed by GitHub
parent 7f307a4cac
commit c19a56c79f
73 changed files with 85 additions and 14961 deletions

View File

@@ -2037,18 +2037,19 @@ mod test {
}
}
#[test]
fn test_find_successive_runs() {
impl From<(i32, i32, Option<i32>, Option<i32>)> for SucRun<i32> {
fn from((offset, len, min_val, max_val): (i32, i32, Option<i32>, Option<i32>)) -> Self {
Self {
offset: offset as usize,
len: len as usize,
first_val: min_val,
last_val: max_val,
}
impl From<(i32, i32, Option<i32>, Option<i32>)> for SucRun<i32> {
fn from((offset, len, min_val, max_val): (i32, i32, Option<i32>, Option<i32>)) -> Self {
Self {
offset: offset as usize,
len: len as usize,
first_val: min_val,
last_val: max_val,
}
}
}
#[test]
fn test_find_successive_runs() {
let testcases = vec![
(
vec![Some(1), Some(1), Some(2), Some(1), Some(3)],