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

Use T: AsRef<Path> as param to SqliteDatabase::new #675

Merged

Conversation

vladimirfomene
Copy link
Contributor

This PR fixes #674

Description

Currently SqliteDatabase::new takes a String as path,
with this change, it now accepts any type that implements
AsRef.

Notes to the reviewers

Checklists

All Submissions:

  • I've signed all my commits
  • I followed the contribution guidelines
  • I ran cargo fmt and cargo clippy before committing

New Features:

  • I've added tests for the new feature
  • I've added docs for the new feature
  • I've updated CHANGELOG.md

Bugfixes:

  • This pull request breaks the existing API
  • I've added tests to reproduce the issue which are now passing
  • I'm linking the issue being fixed by this PR

@danielabrozzoni
Copy link
Member

Code review ACK 4f04341

Copy link
Member

@afilini afilini left a comment

Choose a reason for hiding this comment

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

ACK 4f04341

@afilini
Copy link
Member

afilini commented Jul 28, 2022

Can you rebase on the latest master to fix the conflicts?

Currently SqliteDatabase::new takes a String as path,
with this change, it now accepts any type that implements
AsRef<Path>.
@vladimirfomene
Copy link
Contributor Author

Done @afilini !

@danielabrozzoni
Copy link
Member

utACK 558e37a

@danielabrozzoni danielabrozzoni merged commit a147740 into bitcoindevkit:master Jul 30, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

SqliteDatabase::new should take a Path
3 participants