Fix deprecation warning
This commit is contained in:
parent
d922e3f80b
commit
27494508bf
|
|
@ -247,6 +247,7 @@ due to this version mismatch.
|
||||||
}
|
}
|
||||||
|
|
||||||
// parses a string that looks like "0x100020cfL"
|
// parses a string that looks like "0x100020cfL"
|
||||||
|
#[allow(deprecated)] // trim_right_matches is now trim_end_matches
|
||||||
fn parse_version(version: &str) -> u64 {
|
fn parse_version(version: &str) -> u64 {
|
||||||
// cut off the 0x prefix
|
// cut off the 0x prefix
|
||||||
assert!(version.starts_with("0x"));
|
assert!(version.starts_with("0x"));
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue