1
0
mirror of https://github.com/orhun/kmon synced 2024-07-01 07:15:21 +00:00

Merge branch 'master' into chore/add_build_script

This commit is contained in:
Orhun Parmaksız 2022-10-01 15:14:01 +02:00
commit bcfd992f6b
No known key found for this signature in database
GPG Key ID: F83424824B3E4B90
2 changed files with 8 additions and 2 deletions

View File

@ -7,6 +7,12 @@ pub struct KernelInfo {
uname_output: IntoIter<Vec<String>>,
}
impl Default for KernelInfo {
fn default() -> Self {
Self::new()
}
}
impl KernelInfo {
/**
* Create a new kernel info instance.
@ -70,7 +76,7 @@ mod tests {
use super::*;
#[test]
fn test_info() {
let mut kernel_info = KernelInfo::new();
let mut kernel_info = KernelInfo::default();
for _x in 0..kernel_info.uname_output.len() + 1 {
kernel_info.next();
}

View File

@ -25,7 +25,7 @@ impl Kernel {
pub fn new(args: &ArgMatches) -> Self {
Self {
logs: KernelLogs::default(),
info: KernelInfo::new(),
info: KernelInfo::default(),
modules: KernelModules::new(ListArgs::new(args), Style::new(args)),
}
}