From 17246db38b581a4420a35afc8e732643729092d7 Mon Sep 17 00:00:00 2001 From: Stefan Holderbach Date: Fri, 7 Feb 2025 23:50:33 +0100 Subject: [PATCH] Fix usages of `fmt` to `format number` (#15041) Those slipped through the cracks with https://github.com/nushell/nushell/pull/14875 Avoids deprecation warning and failure after https://github.com/nushell/nushell/pull/15040 --- crates/nu-std/std/input/mod.nu | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/crates/nu-std/std/input/mod.nu b/crates/nu-std/std/input/mod.nu index a323d7111a4..0a79210c197 100644 --- a/crates/nu-std/std/input/mod.nu +++ b/crates/nu-std/std/input/mod.nu @@ -4,7 +4,7 @@ def format-event [ ] { # Replace numeric value of raw_code with hex string let record = match $record { {raw_code: $code} => { - $record | update raw_code {|| $in | fmt | get upperhex} + $record | update raw_code {|| $in | format number | get upperhex} } _ => $record } @@ -12,7 +12,7 @@ def format-event [ ] { # Replace numeric value of raw_modifiers with binary string let record = match $record { {raw_modifiers: $flags} => { - $record | update raw_modifiers {|| $in | fmt | get binary} + $record | update raw_modifiers {|| $in | format number | get binary} } _ => $record }