Update for new rust

This commit is contained in:
Jeremy Soller
2019-04-07 10:49:56 -06:00
parent ff17fed199
commit 219bf26966
2 changed files with 3 additions and 1 deletions
Generated
+2
View File
@@ -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"
+1 -1
View File
@@ -88,7 +88,7 @@ fn disk_paths(paths: &mut Vec<String>) {
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));