mirror of
https://github.com/nushell/nushell.git
synced 2025-08-18 06:20:23 +02:00
Invert &Option
s to Option<&T>
(#10315)
Elide the reference for `Copy` type (`usize`) Use the canonical deref where possible. * `&Box` -> `&` * `&String` -> `&str` * `&PathBuf` -> `&Path` Skips the ctrl-C handler for now.
This commit is contained in:
committed by
GitHub
parent
3e14dc3eb8
commit
a14e9e0a2e
@@ -45,7 +45,7 @@ impl CustomValue for PluginCustomValue {
|
||||
&self,
|
||||
span: nu_protocol::Span,
|
||||
) -> Result<nu_protocol::Value, nu_protocol::ShellError> {
|
||||
let mut plugin_cmd = create_command(&self.filename, &self.shell);
|
||||
let mut plugin_cmd = create_command(&self.filename, self.shell.as_deref());
|
||||
|
||||
let mut child = plugin_cmd.spawn().map_err(|err| {
|
||||
ShellError::GenericError(
|
||||
|
Reference in New Issue
Block a user