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

Add more derive impl for HistoryItemId #662

Merged
merged 1 commit into from
Nov 11, 2023
Merged

Conversation

ClementNerma
Copy link
Contributor

@ClementNerma ClementNerma commented Nov 11, 2023

As the item's documentation indicates, the history item's internal ID is auto-incremented.

Which means we can use it to order entries, as well as using it as e.g. an HashMaps key.

Copy link

codecov bot commented Nov 11, 2023

Codecov Report

Merging #662 (ea18cd6) into main (16ac441) will not change coverage.
The diff coverage is 100.00%.

Impacted file tree graph

@@           Coverage Diff           @@
##             main     #662   +/-   ##
=======================================
  Coverage   49.22%   49.22%           
=======================================
  Files          43       43           
  Lines        7912     7912           
=======================================
  Hits         3895     3895           
  Misses       4017     4017           
Files Coverage Δ
src/history/item.rs 44.89% <100.00%> (ø)

@fdncred fdncred merged commit 01e32da into nushell:main Nov 11, 2023
8 checks passed
@fdncred
Copy link
Collaborator

fdncred commented Nov 11, 2023

Seems reasonable. Thanks

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