Skip to content

Commit 04a7276

Browse files
committed
Update rust version to 2024
Fix #72
1 parent e2b29ad commit 04a7276

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ categories = ["command-line-interface", "command-line-utilities"]
1010
readme = "README.md"
1111
version = "1.9.6"
1212
authors = ["rust-shell-script <[email protected]>"]
13-
edition = "2018"
13+
edition = "2024"
1414
rust-version = "1.88"
1515

1616
[workspace]

macros/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ repository = "https://github.com/rust-shell-script/rust_cmd_lib"
77
keywords = ["shell", "script", "cli", "process", "pipe"]
88
version = "1.9.6"
99
authors = ["Tao Guo <[email protected]>"]
10-
edition = "2018"
10+
edition = "2024"
1111
rust-version = "1.88"
1212

1313
[lib]

macros/src/lexer.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -291,7 +291,7 @@ impl Lexer {
291291
} else {
292292
let mut is_redirect = false;
293293
if s == "1" || s == "2" {
294-
if let Some(TokenTree::Punct(ref p)) = self.iter.peek_no_gap() {
294+
if let Some(TokenTree::Punct(p)) = self.iter.peek_no_gap() {
295295
if p.as_char() == '>' {
296296
self.iter.next();
297297
self.scan_redirect_out(if s == "1" { 1 } else { 2 });

0 commit comments

Comments
 (0)