mirror of
https://github.com/cargo-bins/cargo-binstall.git
synced 2025-04-20 20:48:43 +00:00
Simplify BinFile::link_dest
Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com>
This commit is contained in:
parent
43238e39a3
commit
14c606d72b
1 changed files with 2 additions and 5 deletions
|
@ -109,12 +109,9 @@ impl BinFile {
|
|||
}
|
||||
|
||||
fn link_dest(&self) -> &Path {
|
||||
#[cfg(target_family = "unix")]
|
||||
{
|
||||
if cfg!(target_family = "unix") {
|
||||
Path::new(self.dest.file_name().unwrap())
|
||||
}
|
||||
#[cfg(target_family = "windows")]
|
||||
{
|
||||
} else {
|
||||
&self.dest
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue