Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

refactor: move the partial_from function to the single place it is invoked #10705

Merged
merged 2 commits into from Oct 13, 2023

Conversation

lavafroth
Copy link
Contributor

Description

After the addition of the prefix tab completion support, the older partial_from function is left with a single invocation. This PR moves the code inside the function to the point of invocation.

User-Facing Changes

No user facing changes.

Tests + Formatting

Tests are passing.

After Submitting

crates/nu-cli/src/completions/mod.rs Outdated Show resolved Hide resolved
Copy link
Member

@sholderbach sholderbach left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for iterating! Looks good (Yes one guaranteed allocation less :P)

@sholderbach sholderbach merged commit 6cff54e into nushell:main Oct 13, 2023
19 checks passed
@lavafroth lavafroth deleted the move-partial-from branch October 16, 2023 13:09
hardfau1t pushed a commit to hardfau1t/nushell that referenced this pull request Dec 14, 2023
# Description
After the addition of the prefix tab completion support, the older
`partial_from` function is left with a single invocation. This PR moves
the code inside the function to the point of invocation.

# User-Facing Changes

No user facing changes.

# Tests + Formatting
Tests are passing.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants