Skip to content

Uses Into<PathBuf> for path in AccountsFile::new_from_file()#434

Merged
brooksprumo merged 1 commit intoanza-xyz:masterfrom
brooksprumo:paths/accounts-file
Mar 26, 2024
Merged

Uses Into<PathBuf> for path in AccountsFile::new_from_file()#434
brooksprumo merged 1 commit intoanza-xyz:masterfrom
brooksprumo:paths/accounts-file

Conversation

@brooksprumo
Copy link
Copy Markdown

@brooksprumo brooksprumo commented Mar 26, 2024

Problem

While reviewing #334, I made a wrong suggestion and noticed that the path parameter in AppendVec::new() et al should be Into<PathBuf> instead of a raw Path or AsRef<Path>.

This also extends to AccountsFile::new_from_file().

Summary of Changes

Update AccountsFile::new_from_file() to take the path parameter as Into<PathBuf>.

@codecov-commenter
Copy link
Copy Markdown

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 81.8%. Comparing base (30eecd6) to head (d57899c).
Report is 6 commits behind head on master.

Additional details and impacted files
@@            Coverage Diff            @@
##           master     #434     +/-   ##
=========================================
- Coverage    81.9%    81.8%   -0.1%     
=========================================
  Files         840      841      +1     
  Lines      228107   228253    +146     
=========================================
+ Hits       186851   186913     +62     
- Misses      41256    41340     +84     

@brooksprumo brooksprumo force-pushed the paths/accounts-file branch from d57899c to 0e0ce12 Compare March 26, 2024 18:45
@brooksprumo brooksprumo marked this pull request as ready for review March 26, 2024 18:45
Copy link
Copy Markdown

@yhchiang-sol yhchiang-sol left a comment

Choose a reason for hiding this comment

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

LG! Thanks for the refactoring!

Copy link
Copy Markdown

@HaoranYi HaoranYi left a comment

Choose a reason for hiding this comment

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

lgtm

@brooksprumo brooksprumo merged commit 21fbde7 into anza-xyz:master Mar 26, 2024
@brooksprumo brooksprumo deleted the paths/accounts-file branch March 26, 2024 20:19
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.

4 participants