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:
commit
bcfd992f6b
|
@ -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();
|
||||
}
|
||||
|
|
|
@ -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)),
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user