Skip to content

Commit

Permalink
warnings, disable bsd target
Browse files Browse the repository at this point in the history
  • Loading branch information
kilork committed Sep 14, 2019
1 parent 3b7b13a commit 5c9d177
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ matrix:
os: osx

# *BSD
- env: TARGET=i686-unknown-freebsd DISABLE_TESTS=1
#- env: TARGET=i686-unknown-freebsd DISABLE_TESTS=1
#- env: TARGET=x86_64-unknown-freebsd DISABLE_TESTS=1
#- env: TARGET=x86_64-unknown-netbsd DISABLE_TESTS=1

Expand Down
4 changes: 2 additions & 2 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -598,7 +598,7 @@ impl<'a> MercurialRepo<'a> {
);
}

let prefix = strip_leading_slash(self.config.path_prefix.as_ref(), &"".into());
let prefix = strip_leading_slash(self.config.path_prefix.as_ref(), "");
for file in &mut changeset.files {
match (&mut file.data, &mut file.manifest_entry) {
(None, None) => {
Expand Down Expand Up @@ -660,7 +660,7 @@ impl<'a> MercurialRepo<'a> {
}
}

fn strip_leading_slash(prefix: Option<&String>, x: &String) -> String {
fn strip_leading_slash(prefix: Option<&String>, x: &str) -> String {
prefix.map_or_else(|| x.to_string(), |p| format!("{}/{}", p, x))
}

Expand Down

0 comments on commit 5c9d177

Please sign in to comment.