Skip to content

Commit

Permalink
remove useless conversions
Browse files Browse the repository at this point in the history
  • Loading branch information
danieleades committed Jun 23, 2021
1 parent 9233aa0 commit af9a36d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/cargo/core/compiler/output_depinfo.rs
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ fn add_deps_for_unit(
// The paths we have saved from the unit are of arbitrary relativeness and may be
// relative to the crate root of the dependency.
let path = unit.pkg.root().join(path);
deps.insert(path.into());
deps.insert(path);
}
}
}
Expand Down
2 changes: 1 addition & 1 deletion src/cargo/core/shell.rs
Original file line number Diff line number Diff line change
Expand Up @@ -457,7 +457,7 @@ mod imp {
let mut winsize: libc::winsize = mem::zeroed();
// The .into() here is needed for FreeBSD which defines TIOCGWINSZ
// as c_uint but ioctl wants c_ulong.
if libc::ioctl(libc::STDERR_FILENO, libc::TIOCGWINSZ.into(), &mut winsize) < 0 {
if libc::ioctl(libc::STDERR_FILENO, libc::TIOCGWINSZ, &mut winsize) < 0 {
return TtyWidth::NoTty;
}
if winsize.ws_col > 0 {
Expand Down

0 comments on commit af9a36d

Please sign in to comment.