1
0
mirror of https://github.com/nushell/nushell.git synced 2025-04-26 06:08:21 +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
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

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