From 219bf26966f29dac35d77589e7c553da1efb5a7a Mon Sep 17 00:00:00 2001 From: Jeremy Soller Date: Sun, 7 Apr 2019 10:49:56 -0600 Subject: [PATCH] Update for new rust --- Cargo.lock | 2 ++ src/bin/mount.rs | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/Cargo.lock b/Cargo.lock index 9b30a29d6e..2533efce57 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -1,3 +1,5 @@ +# This file is automatically @generated by Cargo. +# It is not intended for manual editing. [[package]] name = "cfg-if" version = "0.1.7" diff --git a/src/bin/mount.rs b/src/bin/mount.rs index 3474a9e0c9..d7587a8ca4 100644 --- a/src/bin/mount.rs +++ b/src/bin/mount.rs @@ -88,7 +88,7 @@ fn disk_paths(paths: &mut Vec) { Ok(entries) => for entry_res in entries { if let Ok(entry) = entry_res { if let Ok(path) = entry.path().into_os_string().into_string() { - let scheme = path.trim_left_matches(':').trim_matches('/'); + let scheme = path.trim_start_matches(':').trim_matches('/'); if scheme.starts_with("disk") { println!("redoxfs: found scheme {}", scheme); schemes.push(format!("{}:", scheme));