updating dependencies (#5028)

* updated docopt, env_logger, semver and regex crates

* updated parking_lot to 0.4

* fixed compiling on linux

* updated igd to 0.6

* updated jsonrpc

* fixed regex related compiler error on linux
This commit is contained in:
Marek Kotewicz
2017-03-29 00:06:08 +07:00
committed by Gav Wood
parent 843d95966e
commit 64c098627e
26 changed files with 148 additions and 196 deletions

View File

@@ -283,11 +283,11 @@ pub fn rotational_from_df_output(df_out: Vec<u8>) -> Option<PathBuf> {
.and_then(|df_str| Regex::new(r"/dev/(sd[:alpha:]{1,2})")
.ok()
.and_then(|re| re.captures(df_str))
.and_then(|captures| captures.at(1)))
.and_then(|captures| captures.get(1)))
// Generate path e.g. /sys/block/sda/queue/rotational
.map(|drive_path| {
let mut p = PathBuf::from("/sys/block");
p.push(drive_path);
p.push(drive_path.as_str());
p.push("queue/rotational");
p
})