mirror of
https://github.com/NotAShelf/microfetch.git
synced 2025-12-08 14:03:51 +00:00
clippy lints
This commit is contained in:
parent
0e4b2d2ac1
commit
cff4332122
4 changed files with 7 additions and 20 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue