summaryrefslogtreecommitdiff
path: root/cli/deno_dir.rs
diff options
context:
space:
mode:
authorKitson Kelly <me@kitsonkelly.com>2020-11-28 06:47:35 +1100
committerGitHub <noreply@github.com>2020-11-28 06:47:35 +1100
commite2858d0bbb13dae202e7da9ee7bbb81916349d1e (patch)
treec47084e73a9d4c7a852546374069b1aa176c3265 /cli/deno_dir.rs
parent40bf26b37d82c7a85c3d6a54947fc441eb5e6946 (diff)
chore: clippy future cleanups (#8514)
Diffstat (limited to 'cli/deno_dir.rs')
-rw-r--r--cli/deno_dir.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/cli/deno_dir.rs b/cli/deno_dir.rs
index 5bc05f549..71c63361a 100644
--- a/cli/deno_dir.rs
+++ b/cli/deno_dir.rs
@@ -71,7 +71,7 @@ mod dirs {
// The same code is used by the dirs crate
unsafe fn fallback() -> Option<std::ffi::OsString> {
let amt = match libc::sysconf(libc::_SC_GETPW_R_SIZE_MAX) {
- n if n < 0 => 512 as usize,
+ n if n < 0 => 512_usize,
n => n as usize,
};
let mut buf = Vec::with_capacity(amt);