clippy lints

This commit is contained in:
raf 2024-08-04 00:07:11 +03:00
commit cff4332122
Signed by: NotAShelf
GPG key ID: AF26552424E53993
4 changed files with 7 additions and 20 deletions

View file

@ -2,7 +2,7 @@ use std::fs::File;
use std::io::{self, BufRead};
use std::path::Path;
pub fn get_system_uptime() -> Result<String, io::Error> {
pub fn get_current() -> Result<String, io::Error> {
let path = Path::new("/proc/uptime");
let file = File::open(path)?;
let reader = io::BufReader::new(file);