Skip to content

Fix one error message in into string - #8163

Merged
sholderbach merged 1 commit into
nushell:mainfrom
webbedspace:tiny-fix
Feb 22, 2023
Merged

sholderbach merged 1 commit into
nushell:mainfrom
webbedspace:tiny-fix

Conversation

@webbedspace

Copy link
Copy Markdown
Contributor

Description

Fixes the following message:

〉(ls).0 | into string
Error: nu::shell::cant_convert (link)

  × Can't convert to record.
   ╭─[entry #4:1:1]
 1 │ (ls).0 | into string
   ·          ─────┬─────
   ·               ╰── can't convert string to record
   ╰────
  help: try using the `to nuon` command

User-Facing Changes

See above.

Tests + Formatting

Don't forget to add tests that cover your changes.

Make sure you've run and fixed any issues with these commands:

  • cargo fmt --all -- --check to check standard code formatting (cargo fmt --all applies these changes)
  • cargo clippy --workspace -- -D warnings -D clippy::unwrap_used -A clippy::needless_collect to check that you're using the standard code style
  • cargo test --workspace to check that all tests pass

After Submitting

If your PR had any user-facing changes, update the documentation after the PR is merged, if necessary. This will help us keep the docs up to date.

@codecov

codecov Bot commented Feb 22, 2023

Copy link
Copy Markdown

Codecov Report

Merging #8163 (99cf6e1) into main (ca09dbb) will increase coverage by 0.38%.
The diff coverage is 0.00%.

Additional details and impacted files

Impacted file tree graph

@@            Coverage Diff             @@
##             main    #8163      +/-   ##
==========================================
+ Coverage   54.23%   54.61%   +0.38%     
==========================================
  Files         608      608              
  Lines       99009    99013       +4     
==========================================
+ Hits        53695    54075     +380     
+ Misses      45314    44938     -376     
Impacted Files Coverage Δ
crates/nu-command/src/conversions/into/string.rs 77.82% <0.00%> (-0.32%) ⬇️
crates/nu-command/src/env/with_env.rs 84.55% <0.00%> (+3.71%) ⬆️
crates/nu-color-config/src/nu_style.rs 80.22% <0.00%> (+70.91%) ⬆️

@sholderbach
sholderbach added this pull request to the merge queue Feb 22, 2023
Merged via the queue into nushell:main with commit 4482862 Feb 22, 2023
@webbedspace
webbedspace deleted the tiny-fix branch February 22, 2023 11:56
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.

2 participants