Improved support for wide characters
This commit is contained in:
@@ -5,7 +5,6 @@ use crate::prelude::*;
|
|||||||
pub struct MetaTab {
|
pub struct MetaTab {
|
||||||
timer_start: Instant,
|
timer_start: Instant,
|
||||||
last_runtime: Option<Duration>,
|
last_runtime: Option<Duration>,
|
||||||
last_status: i32
|
|
||||||
}
|
}
|
||||||
|
|
||||||
impl MetaTab {
|
impl MetaTab {
|
||||||
@@ -13,7 +12,6 @@ impl MetaTab {
|
|||||||
Self {
|
Self {
|
||||||
timer_start: Instant::now(),
|
timer_start: Instant::now(),
|
||||||
last_runtime: None,
|
last_runtime: None,
|
||||||
last_status: 0
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
pub fn start_timer(&mut self) {
|
pub fn start_timer(&mut self) {
|
||||||
@@ -25,10 +23,4 @@ impl MetaTab {
|
|||||||
pub fn get_runtime(&self) -> Option<Duration> {
|
pub fn get_runtime(&self) -> Option<Duration> {
|
||||||
self.last_runtime
|
self.last_runtime
|
||||||
}
|
}
|
||||||
pub fn set_status(&mut self, code: i32) {
|
|
||||||
self.last_status = code
|
|
||||||
}
|
|
||||||
pub fn last_status(&self) -> i32 {
|
|
||||||
self.last_status
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user