mirror of
https://github.com/nushell/nushell.git
synced 2025-08-09 08:06:03 +02:00
Fix clippy errors (Mac) (#9440)
<!-- if this PR closes one or more issues, you can automatically link the PR with them by using one of the [*linking keywords*](https://docs.github.com/en/issues/tracking-your-work-with-issues/linking-a-pull-request-to-an-issue#linking-a-pull-request-to-an-issue-using-a-keyword), e.g. - this PR should close #xxxx - fixes #xxxx you can also mention related issues, PRs or discussions! --> # Description Was getting errors when running the clip checks on another PR. Applied the suggested fixes. <img width="1792" alt="image" src="https://github.com/nushell/nushell/assets/432535/bec30bd9-307d-4877-9eb8-1f8f3ed3edd9"> <img width="1527" alt="image" src="https://github.com/nushell/nushell/assets/432535/f540da61-aa81-4a9e-9948-46d8d45afecb">
This commit is contained in:
@ -2637,7 +2637,7 @@ pub fn parse_overlay_use(working_set: &mut StateWorkingSet, call: Box<Call>) ->
|
||||
(
|
||||
new_name
|
||||
.map(|spanned| spanned.item)
|
||||
.unwrap_or(String::from_utf8_lossy(&new_module.name).to_string()),
|
||||
.unwrap_or_else(|| String::from_utf8_lossy(&new_module.name).to_string()),
|
||||
new_module,
|
||||
module_id,
|
||||
true,
|
||||
|
Reference in New Issue
Block a user