-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(lib): generalize the manifest_path accepted by entry functions
The old manifest_path for verify_conditions(), prepare(), and list_packages() was an Option<PathBuf> which limited the types that could be passed. Generalize manifest_path to now allow Option<impl AsRef<Path>> which allows a broader range of types to be passed in. BREAKING CHANGE: generalize the manifest_path passed to the main library functions The manifest_path specified in verify_conditions(), prepare(), and list_packages() previously supplied enough type inforation to support type inferance at the call site. The more generalized manifest_path may cause type inferance to fail in circumstances where it used to suceed. The fix for this is to add further type information at the call site for these functions.
- Loading branch information
Showing
2 changed files
with
27 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters