From 01c1e5e8b0e243dbf7dfc4d3673e6f3f629ace30 Mon Sep 17 00:00:00 2001 From: Darren Schroeder <343840+fdncred@users.noreply.github.com> Date: Sat, 19 Mar 2022 09:52:50 -0500 Subject: [PATCH] commands are either custom or builtin, not both (#4876) * commands are either custom or builtin, not both * clippy --- crates/nu-engine/src/eval.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/crates/nu-engine/src/eval.rs b/crates/nu-engine/src/eval.rs index 27d8aaa0c1..13579648e7 100644 --- a/crates/nu-engine/src/eval.rs +++ b/crates/nu-engine/src/eval.rs @@ -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, });