mirror of
https://github.com/nushell/nushell.git
synced 2025-02-19 20:11:09 +01:00
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
This commit is contained in:
parent
e60dac8957
commit
17246db38b
@ -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
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user