diff --git a/crates/nu-cli/src/commands/shells.rs b/crates/nu-cli/src/commands/shells.rs index 6a7487457..9468465b3 100644 --- a/crates/nu-cli/src/commands/shells.rs +++ b/crates/nu-cli/src/commands/shells.rs @@ -37,9 +37,9 @@ fn shells(args: CommandArgs, _registry: &CommandRegistry) -> Result for Primitive { + /// Helper to convert from boolean to a primitive + fn from(b: bool) -> Primitive { + Primitive::Boolean(b) + } +} + impl From<&str> for Primitive { /// Helper to convert from string slices to a primitive fn from(s: &str) -> Primitive {