Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Commit 0604e96

Browse files
authored
Merge pull request #277 from ben1009/tool-chain
chore: upgrade rust-toolchain to nightly-2024-12-01
2 parents c9ed807 + afb2b7c commit 0604e96

File tree

5 files changed

+12
-12
lines changed

5 files changed

+12
-12
lines changed

.github/workflows/check.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ concurrency:
1212

1313
env:
1414
CARGO_REGISTRIES_CRATES_IO_PROTOCOL: sparse
15-
RUST_TOOLCHAIN: nightly-2024-10-01
15+
RUST_TOOLCHAIN: nightly-2024-12-01
1616

1717
name: Check
1818
jobs:

.github/workflows/test.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ concurrency:
1212

1313
env:
1414
CARGO_REGISTRIES_CRATES_IO_PROTOCOL: sparse
15-
RUST_TOOLCHAIN: nightly-2024-10-01
15+
RUST_TOOLCHAIN: nightly-2024-12-01
1616

1717
name: Test
1818
jobs:

Makefile.toml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -13,15 +13,15 @@ min_version = "0.36.10"
1313
[tasks.install-nextest]
1414
category = "Misc"
1515
description = "install cargo-nextest"
16-
install_crate = { crate_name = "cargo-nextest", version = "0.9.82", binary = "cargo", test_arg = [
16+
install_crate = { crate_name = "cargo-nextest", version = "0.9.87", binary = "cargo", test_arg = [
1717
"nextest",
1818
"--help",
1919
] }
2020

2121
[tasks.install-llvm-cov]
2222
category = "Misc"
2323
description = "install cargo-llvm-cov"
24-
install_crate = { crate_name = "cargo-llvm-cov", version = "0.5.35", binary = "cargo", test_arg = [
24+
install_crate = { crate_name = "cargo-llvm-cov", version = "0.6.15", binary = "cargo", test_arg = [
2525
"llvm-cov",
2626
"--help",
2727
] }
@@ -50,7 +50,7 @@ args = ["fmt", "--all"]
5050
[tasks.check-typos]
5151
category = "Dev - check"
5252
description = "Run cargo typos-cli check"
53-
install_crate = { version = "1.27.0", crate_name = "typos-cli", binary = "typos", test_arg = [
53+
install_crate = { version = "1.28.4", crate_name = "typos-cli", binary = "typos", test_arg = [
5454
"--help",
5555
] }
5656
script = """
@@ -66,7 +66,7 @@ fi
6666
[tasks.check-hakari]
6767
category = "Dev - check"
6868
description = "Run cargo hakari check and attempt to fix"
69-
install_crate = { version = "0.9.27", crate_name = "cargo-hakari", binary = "cargo", test_arg = [
69+
install_crate = { version = "0.9.34", crate_name = "cargo-hakari", binary = "cargo", test_arg = [
7070
"hakari",
7171
"--help",
7272
] }
@@ -80,7 +80,7 @@ cargo hakari verify > /dev/null
8080
[tasks.check-machete]
8181
category = "Dev - check"
8282
description = "Run cargo machete check"
83-
install_crate = { version = "0.6.0", crate_name = "cargo-machete", binary = "cargo", test_arg = [
83+
install_crate = { version = "0.7.0", crate_name = "cargo-machete", binary = "cargo", test_arg = [
8484
"machete",
8585
"--help",
8686
] }

rust-toolchain

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
[toolchain]
2-
channel = "nightly-2024-10-01"
2+
channel = "nightly-2024-12-01"

src/main.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,10 @@ fn main() {
3131
dotenv().unwrap();
3232

3333
let mut initialized_ids = get_initialized_ids("./src/problem/mod.rs");
34+
let random_pattern = Regex::new(r"^random$").unwrap();
35+
let solving_pattern = Regex::new(r"^solve (\d+)$").unwrap();
36+
let all_pattern = Regex::new(r"^all$").unwrap();
37+
3438
loop {
3539
println!(
3640
"Please enter a frontend problem id, \n\
@@ -47,10 +51,6 @@ fn main() {
4751
.expect("Failed to read line");
4852
let id_arg = id_arg.trim();
4953

50-
let random_pattern = Regex::new(r"^random$").unwrap();
51-
let solving_pattern = Regex::new(r"^solve (\d+)$").unwrap();
52-
let all_pattern = Regex::new(r"^all$").unwrap();
53-
5454
if random_pattern.is_match(id_arg) {
5555
println!("You select random mode.");
5656
_id = generate_random_id(&initialized_ids);

0 commit comments

Comments
 (0)