1
0
mirror of https://github.com/nushell/nushell.git synced 2025-07-12 20:35:18 +02:00

commands are either custom or builtin, not both ()

* commands are either custom or builtin, not both

* clippy
This commit is contained in:
Darren Schroeder
2022-03-19 09:52:50 -05:00
committed by GitHub
parent d6669d3f33
commit 01c1e5e8b0

@ -969,8 +969,9 @@ pub fn create_scope(
}); });
cols.push("is_builtin".to_string()); cols.push("is_builtin".to_string());
// we can only be a is_builtin or is_custom, not both
vals.push(Value::Bool { vals.push(Value::Bool {
val: decl.is_builtin(), val: decl.get_block_id().is_none(),
span, span,
}); });