Fix deprecation warning

This commit is contained in:
Steven Fackler 2019-03-11 21:35:21 -07:00
parent d922e3f80b
commit 27494508bf
1 changed files with 1 additions and 0 deletions

View File

@ -247,6 +247,7 @@ due to this version mismatch.
}
// parses a string that looks like "0x100020cfL"
#[allow(deprecated)] // trim_right_matches is now trim_end_matches
fn parse_version(version: &str) -> u64 {
// cut off the 0x prefix
assert!(version.starts_with("0x"));