Update dependencies.
This commit is contained in:
parent
076e988df0
commit
c3b5529101
706
Cargo.lock
generated
706
Cargo.lock
generated
File diff suppressed because it is too large
Load Diff
|
@ -20,13 +20,12 @@ debug = true
|
||||||
[dependencies]
|
[dependencies]
|
||||||
# ropey = "1"
|
# ropey = "1"
|
||||||
ropey = { git = "https://github.com/cessen/ropey", branch = "2.0-alpha" }
|
ropey = { git = "https://github.com/cessen/ropey", branch = "2.0-alpha" }
|
||||||
unicode-segmentation = "1.7"
|
unicode-segmentation = "1"
|
||||||
unicode-width = "0.1"
|
unicode-width = "0.1"
|
||||||
clap = "2"
|
clap = "2"
|
||||||
smallvec = "1"
|
smallvec = "1"
|
||||||
crossterm = "0.27"
|
crossterm = "0.27"
|
||||||
gag = "1"
|
gag = "1"
|
||||||
time = "0.2"
|
|
||||||
|
|
||||||
# Local crate dependencies
|
# Local crate dependencies
|
||||||
[dependencies.backend]
|
[dependencies.backend]
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
use time::Instant;
|
use std::time::Instant;
|
||||||
|
|
||||||
pub fn digit_count(mut n: u32, b: u32) -> u32 {
|
pub fn digit_count(mut n: u32, b: u32) -> u32 {
|
||||||
let mut d = 0;
|
let mut d = 0;
|
||||||
|
@ -33,7 +33,7 @@ impl Timer {
|
||||||
|
|
||||||
/// Returns the time elapsed in milliseconds since the last call to tick().
|
/// Returns the time elapsed in milliseconds since the last call to tick().
|
||||||
pub fn elapsed(self) -> u64 {
|
pub fn elapsed(self) -> u64 {
|
||||||
self.last_instant.elapsed().whole_milliseconds() as u64
|
self.last_instant.elapsed().as_millis() as u64
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user