summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRyze <50497128+ryze312@users.noreply.github.com>2024-07-23 15:48:22 +0300
committerRyze <50497128+ryze312@users.noreply.github.com>2024-07-23 15:48:22 +0300
commitb21c98b00f3db3debcac33d087bb96381cab011b (patch)
tree530dc1ed6046a9d67c1868bfab01073076c2fe21
parent823679991f36844e5e825de176561b881387277f (diff)
downloadwhere-rs-mane.tar.gz
where-rs-mane.tar.bz2
where-rs-mane.zip
Remove needless cast to i64HEADmane
-rw-r--r--whrd/src/lib.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/whrd/src/lib.rs b/whrd/src/lib.rs
index e508503..de08988 100644
--- a/whrd/src/lib.rs
+++ b/whrd/src/lib.rs
@@ -47,7 +47,7 @@ impl SessionCollection {
inner
}
}
-
+
pub fn get_empty() -> Self {
Self {
inner: vec![]
@@ -201,7 +201,7 @@ impl From<Utmpx> for Session {
// active when they are not.
// https://github.com/GrayJack/coreutils/issues/164
let active = utmpx.entry_type() == UtmpxKind::UserProcess && utmpx.is_active();
- let login_time = utmpx.timeval().tv_sec as i64;
+ let login_time = utmpx.timeval().tv_sec;
Self {
host: None,