Skip to content

Commit

Permalink
More clippy!
Browse files Browse the repository at this point in the history
  • Loading branch information
svartalf committed Jun 8, 2020
1 parent c601812 commit 4717f47
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion heim-disk/src/sys/unix/usage.rs
Expand Up @@ -14,7 +14,7 @@ pub struct Usage(libc::statvfs);
// Why there are `u64::from()` everywhere -- to mitigate the differences
// between `libc::statvfs` for x86 and `libc::statvfs` for x86_64,
// fields can be either `u32` or `u64`.
#[allow(clippy::identity_conversion)]
#[allow(clippy::useless_conversion)]
impl Usage {
pub fn total(&self) -> Information {
let value = u64::from(self.0.f_blocks) * u64::from(self.0.f_frsize);
Expand Down
2 changes: 1 addition & 1 deletion heim-memory/src/sys/macos/swap.rs
Expand Up @@ -34,7 +34,7 @@ impl Swap {
}
}

#[allow(clippy::identity_conversion)]
#[allow(clippy::useless_conversion)]
pub async fn swap() -> Result<Swap> {
let xsw_usage = bindings::vm_swapusage()?;
let vm_stats = bindings::host_vm_info()?;
Expand Down
2 changes: 1 addition & 1 deletion heim-process/src/sys/windows/pids.rs
Expand Up @@ -5,7 +5,7 @@ use winapi::um::minwinbase;
use super::bindings;
use crate::{Pid, ProcessError, ProcessResult};

#[allow(clippy::identity_conversion)]
#[allow(clippy::useless_conversion)]
pub async fn pids() -> Result<impl Stream<Item = Result<Pid>>> {
let pids = bindings::pids()?
.into_iter()
Expand Down

0 comments on commit 4717f47

Please sign in to comment.