Skip to content

Commit 99dfc46

Browse files
authored
Merge pull request #190 from ia7ck/update-2025-10
2025-10 update
2 parents a3ec4a7 + dffad73 commit 99dfc46

File tree

56 files changed

+107
-112
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

56 files changed

+107
-112
lines changed

Cargo.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
[workspace]
2+
resolver = "3"
23
members = [
34
"libs/*",
45
"tool/oj_test",

libs/arithmetic_series/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
name = "arithmetic_series"
33
version = "0.1.0"
44
authors = ["ia7ck <23146842+ia7ck@users.noreply.github.com>"]
5-
edition = "2021"
5+
edition = "2024"
66
license = "CC0-1.0"
77

88
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html

libs/auxiliary_tree/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
[package]
22
name = "auxiliary_tree"
33
version = "0.1.0"
4-
edition = "2021"
4+
edition = "2024"
55
authors = ["ia7ck <23146842+ia7ck@users.noreply.github.com>"]
66
license = "CC0-1.0"
77

libs/avl_tree/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
name = "avl_tree"
33
version = "0.1.0"
44
authors = ["ia7ck <23146842+ia7ck@users.noreply.github.com>"]
5-
edition = "2021"
5+
edition = "2024"
66
license = "CC0-1.0"
77

88
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html

libs/avl_tree/src/lib.rs

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -178,7 +178,7 @@ where
178178

179179
/// 集合にxが含まれるかを返す。
180180
pub fn contains(&self, x: &T) -> bool {
181-
self.find_last(x).map_or(false, |node| x.eq(&node.x))
181+
self.find_last(x).is_some_and(|node| x.eq(&node.x))
182182
}
183183

184184
/// xを追加する。集合にxが含まれていなかった場合trueを返す。
@@ -370,11 +370,7 @@ where
370370
}
371371
}
372372

373-
if hit {
374-
Ok(count)
375-
} else {
376-
Err(count)
377-
}
373+
if hit { Ok(count) } else { Err(count) }
378374
}
379375
}
380376

@@ -424,7 +420,7 @@ impl<'a, T> Iterator for Iter<'a, T> {
424420
}
425421

426422
impl<T> AvlTree<T> {
427-
pub fn iter(&self) -> Iter<T> {
423+
pub fn iter(&self) -> Iter<'_, T> {
428424
Iter::new(&self.root)
429425
}
430426
}

libs/binary_search_range/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
name = "binary_search_range"
33
version = "0.1.0"
44
authors = ["ia7ck <23146842+ia7ck@users.noreply.github.com>"]
5-
edition = "2021"
5+
edition = "2024"
66
license = "CC0-1.0"
77

88
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html

libs/cumulative_sum_2d/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
name = "cumulative_sum_2d"
33
version = "0.1.0"
44
authors = ["ia7ck <23146842+ia7ck@users.noreply.github.com>"]
5-
edition = "2021"
5+
edition = "2024"
66
license = "CC0-1.0"
77

88
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html

libs/detect_cycle/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
name = "detect_cycle"
33
version = "0.1.0"
44
authors = ["ia7ck <23146842+ia7ck@users.noreply.github.com>"]
5-
edition = "2021"
5+
edition = "2024"
66
license = "CC0-1.0"
77

88
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html

libs/detect_cycle/examples/judge_cycle_detection.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
use proconio::{
22
input,
3-
source::{once::OnceSource, Source},
3+
source::{Source, once::OnceSource},
44
};
55

66
use std::env;

libs/dijkstra/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
name = "dijkstra"
33
version = "0.1.0"
44
authors = ["ia7ck <23146842+ia7ck@users.noreply.github.com>"]
5-
edition = "2021"
5+
edition = "2024"
66
license = "CC0-1.0"
77

88
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html

0 commit comments

Comments
 (0)