Skip to content

Commit e55de16

Browse files
authored
Merge branch 'uutils:main' into main
2 parents 3360ebc + e194022 commit e55de16

File tree

6 files changed

+8
-11
lines changed

6 files changed

+8
-11
lines changed

.github/workflows/CICD.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -309,7 +309,7 @@ jobs:
309309
- name: Run sccache-cache
310310
uses: mozilla-actions/sccache-action@v0.0.4
311311
- name: Test
312-
run: cargo nextest run --hide-progress-bar --profile ci ${{ steps.vars.outputs.CARGO_FEATURES_OPTION }}
312+
run: cargo nextest run --hide-progress-bar --profile ci --features ${{ matrix.job.features }}
313313
env:
314314
RUST_BACKTRACE: "1"
315315

@@ -336,7 +336,7 @@ jobs:
336336
- name: Run sccache-cache
337337
uses: mozilla-actions/sccache-action@v0.0.4
338338
- name: Test
339-
run: cargo nextest run --hide-progress-bar --profile ci ${{ steps.vars.outputs.CARGO_FEATURES_OPTION }}
339+
run: cargo nextest run --hide-progress-bar --profile ci --features ${{ matrix.job.features }}
340340
env:
341341
RUST_BACKTRACE: "1"
342342

Cargo.lock

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -263,7 +263,7 @@ binary-heap-plus = "0.5.0"
263263
bstr = "1.9.1"
264264
bytecount = "0.6.7"
265265
byteorder = "1.5.0"
266-
chrono = { version = "0.4.37", default-features = false, features = [
266+
chrono = { version = "0.4.38", default-features = false, features = [
267267
"std",
268268
"alloc",
269269
"clock",

src/uu/factor/src/numeric/montgomery.rs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -43,12 +43,10 @@ pub(crate) trait Arithmetic: Copy + Sized {
4343
fn one(&self) -> Self::ModInt {
4444
self.to_mod(1)
4545
}
46+
4647
fn minus_one(&self) -> Self::ModInt {
4748
self.to_mod(self.modulus() - 1)
4849
}
49-
fn zero(&self) -> Self::ModInt {
50-
self.to_mod(0)
51-
}
5250
}
5351

5452
#[derive(Clone, Copy, Debug)]

src/uu/factor/src/numeric/traits.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ use num_traits::{
1313
};
1414
use std::fmt::{Debug, Display};
1515

16+
#[allow(dead_code)] // Rust doesn't recognize the use in the macro
1617
pub(crate) trait Int:
1718
Display + Debug + PrimInt + OverflowingAdd + WrappingNeg + WrappingSub + WrappingMul
1819
{
@@ -23,6 +24,7 @@ pub(crate) trait Int:
2324
fn as_u128(&self) -> u128;
2425
}
2526

27+
#[allow(dead_code)] // Rust doesn't recognize the use in the macro
2628
pub(crate) trait DoubleInt: Int {
2729
/// An integer type with twice the width of `Self`.
2830
/// In particular, multiplications (of `Int` values) can be performed in

src/uu/od/src/output_info.rs

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -38,8 +38,6 @@ pub struct OutputInfo {
3838

3939
/// The number of bytes in a block. (This is the size of the largest datatype in `spaced_formatters`.)
4040
pub byte_size_block: usize,
41-
/// The width of a block in human readable format. (The size of the largest format.)
42-
pub print_width_block: usize,
4341
/// All formats.
4442
spaced_formatters: Vec<SpacedFormatterItemInfo>,
4543
/// determines if duplicate output lines should be printed, or
@@ -78,7 +76,6 @@ impl OutputInfo {
7876
byte_size_line: line_bytes,
7977
print_width_line,
8078
byte_size_block,
81-
print_width_block,
8279
spaced_formatters,
8380
output_duplicates,
8481
}

0 commit comments

Comments
 (0)