mirror of
https://github.com/nushell/nushell.git
synced 2025-08-09 20:57:49 +02:00
Try again with math-like externals (#4629)
* Try again with math-like externals * clippy 1.59 * clippy 1.59 * clippy 1.59
This commit is contained in:
@ -423,7 +423,7 @@ fn generate_ansi_code_list(
|
||||
let cols = vec!["name".into(), "short name".into(), "code".into()];
|
||||
let name: Value = Value::string(String::from(ansi_code.long_name), call_span);
|
||||
let short_name = Value::string(ansi_code.short_name.unwrap_or(""), call_span);
|
||||
let code_string = String::from(&ansi_code.code.replace("\u{1b}", ""));
|
||||
let code_string = String::from(&ansi_code.code.replace('\u{1b}', ""));
|
||||
let code = Value::string(code_string, call_span);
|
||||
let vals = vec![name, short_name, code];
|
||||
Value::Record {
|
||||
|
Reference in New Issue
Block a user