Skip to content

Commit

Permalink
missed arg on linux
Browse files Browse the repository at this point in the history
  • Loading branch information
BrettMayson committed Oct 30, 2023
1 parent 3b9ca4c commit 4cab660
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bin/src/utils/link.rs
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ pub fn create_link(link: &PathBuf, target: &PathBuf) -> Result<(), Error> {
///
/// # Errors
/// - [`std::io::Error`] if the link could not be created
pub fn create_link(link: &PathBuf, target: &str) -> Result<(), Error> {
pub fn create_link(link: &PathBuf, target: &PathBuf) -> Result<(), Error> {
let target = target.replace('\\', "/");

Check failure on line 52 in bin/src/utils/link.rs

View workflow job for this annotation

GitHub Actions / ubuntu

no method named `replace` found for reference `&PathBuf` in the current scope

Check failure on line 52 in bin/src/utils/link.rs

View workflow job for this annotation

GitHub Actions / beta

no method named `replace` found for reference `&std::path::PathBuf` in the current scope

error[E0599]: no method named `replace` found for reference `&std::path::PathBuf` in the current scope --> bin/src/utils/link.rs:52:25 | 52 | let target = target.replace('\\', "/"); | ^^^^^^^ method not found in `&PathBuf`

Check failure on line 52 in bin/src/utils/link.rs

View workflow job for this annotation

GitHub Actions / stable

no method named `replace` found for reference `&std::path::PathBuf` in the current scope

error[E0599]: no method named `replace` found for reference `&std::path::PathBuf` in the current scope --> bin/src/utils/link.rs:52:25 | 52 | let target = target.replace('\\', "/"); | ^^^^^^^ method not found in `&PathBuf`
trace!("symlink {:?} => {:?}", link, target);
std::os::unix::fs::symlink(target, link)?;
Expand Down

0 comments on commit 4cab660

Please sign in to comment.