mirror of
https://github.com/cargo-bins/cargo-binstall.git
synced 2025-06-07 19:26:36 +00:00
Refactor: Extract new crate binstalk-bins
(#1294)
To reduce `binstalk` codegen and enable reuse of it. Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com>
This commit is contained in:
parent
76c72469eb
commit
0c5a65fb35
14 changed files with 114 additions and 87 deletions
|
@ -51,7 +51,7 @@ impl Resolution {
|
|||
|
||||
impl ResolutionFetch {
|
||||
pub fn install(self, opts: &Options) -> Result<CrateInfo, BinstallError> {
|
||||
type InstallFp = fn(&bins::BinFile) -> Result<(), BinstallError>;
|
||||
type InstallFp = fn(&bins::BinFile) -> Result<(), bins::Error>;
|
||||
|
||||
let (install_bin, install_link): (InstallFp, InstallFp) = match (opts.no_track, opts.force)
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue