Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .github/workflows/TestingCI.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ jobs:
- name: Fetch
run: cargo fetch
- name: Build
run: cargo build --release --verbose
run: RUSTFLAGS='-D warnings' cargo build --release --verbose
- name: Run tests
run: cargo test --release --verbose
- name: Run fmt check
Expand All @@ -42,6 +42,6 @@ jobs:
- name: Fetch
run: cargo fetch
- name: Build
run: cargo build --release --verbose
run: RUSTFLAGS='-D warnings' cargo build --release --verbose
- name: Run tests
run: cargo test --release --verbose
14 changes: 10 additions & 4 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 4 additions & 4 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,8 @@ members = [
[workspace.package]
repository = "https://github.com/rustcoreutils/posixutils-rs"
license = "MIT"
edition = "2021"
rust-version = "1.84.0"
edition = "2024"
rust-version = "1.85.0"

[workspace.dependencies]
clap = { version = "4", default-features = false, features = ["std", "derive", "help", "usage", "error-context", "cargo"] }
Expand All @@ -44,5 +44,5 @@ gettext-rs = { path = "./gettext-rs" }
errno = "0.3"
chrono-tz = "0.10"

[workspace.lints]

[workspace.lints.rust]
rust-2024-compatibility = "warn"
6 changes: 3 additions & 3 deletions awk/compiler.rs
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,10 @@ use crate::program::{
};
use crate::regex::Regex;

use pest::Parser;
use pest::error::InputLocation;
use pest::iterators::{Pair, Pairs};
use pest::pratt_parser::{Assoc, Op, PrattParser};
use pest::Parser;
use std::cell::{Cell, RefCell};
use std::collections::HashMap;
use std::ffi::CString;
Expand Down Expand Up @@ -704,13 +704,13 @@ impl Compiler {
return Err(pest_error_from_span(
span,
format!("'{}' is not a function", name),
))
));
}
None => {
return Err(pest_error_from_span(
span,
format!("call to undefined function '{}'", name),
))
));
}
}
Ok(Expr::new(ExprKind::Number, instructions))
Expand Down
2 changes: 1 addition & 1 deletion awk/interpreter/array.rs
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
//

use std::{
collections::{hash_map::Entry, HashMap},
collections::{HashMap, hash_map::Entry},
rc::Rc,
};

Expand Down
6 changes: 3 additions & 3 deletions awk/interpreter/io.rs
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@

use core::panic;
use std::{
collections::{hash_map::Entry, HashMap},
collections::{HashMap, hash_map::Entry},
ffi::CString,
fs::File,
io::{BufReader, Bytes, Read, Write},
Expand Down Expand Up @@ -43,13 +43,13 @@ impl TryFrom<AwkString> for RecordSeparator {
type ReadResult = Result<u8, String>;

macro_rules! read_iter_next {
($iter:expr, $ret:expr) => {
($iter:expr_2021, $ret:expr_2021) => {
match $iter.next() {
Some(byte_result) => byte_result?,
None => return $ret,
}
};
($iter:expr) => {
($iter:expr_2021) => {
read_iter_next!($iter, Ok(None))
};
}
Expand Down
Loading