From ceeed4c0484a84d8c0acda1f2fa63ec702bd4e44 Mon Sep 17 00:00:00 2001 From: sholderbach Date: Thu, 19 Dec 2024 15:30:47 +0100 Subject: [PATCH] cargo fmt --- crates/nu-cmd-extra/src/extra/bits/into.rs | 1 - crates/nu-cmd-extra/src/extra/strings/format/mod.rs | 2 +- tests/repl/test_bits.rs | 5 ++++- 3 files changed, 5 insertions(+), 3 deletions(-) diff --git a/crates/nu-cmd-extra/src/extra/bits/into.rs b/crates/nu-cmd-extra/src/extra/bits/into.rs index fb5cc43ea8..631637a44e 100644 --- a/crates/nu-cmd-extra/src/extra/bits/into.rs +++ b/crates/nu-cmd-extra/src/extra/bits/into.rs @@ -107,7 +107,6 @@ impl Command for BitsInto { } } - #[cfg(test)] mod test { use super::*; diff --git a/crates/nu-cmd-extra/src/extra/strings/format/mod.rs b/crates/nu-cmd-extra/src/extra/strings/format/mod.rs index 1a703002bb..8b8f45f188 100644 --- a/crates/nu-cmd-extra/src/extra/strings/format/mod.rs +++ b/crates/nu-cmd-extra/src/extra/strings/format/mod.rs @@ -1,5 +1,5 @@ -mod command; mod bits; +mod command; pub(crate) use command::FormatPattern; // TODO remove `format_bits` visibility after removal of into bits diff --git a/tests/repl/test_bits.rs b/tests/repl/test_bits.rs index 264c5e80ce..68c610d2d6 100644 --- a/tests/repl/test_bits.rs +++ b/tests/repl/test_bits.rs @@ -220,7 +220,10 @@ fn bits_shift_right_binary4() -> TestResult { #[test] fn bits_shift_right_binary_exceeding() -> TestResult { // Compared to the int case this is made inclusive of the bit count - fail_test("0x[01 30] | bits shr 17 | format bits", "available bits (16)") + fail_test( + "0x[01 30] | bits shr 17 | format bits", + "available bits (16)", + ) } #[test]