Browse Source

fix clippy

remotes/origin/add-with-shims
Gal Schlezinger 3 years ago
parent
commit
af18f4e2d1
No known key found for this signature in database
GPG Key ID: 68CF3D15D272E5E1
  1. 6
      src/shell/infer/mod.rs

6
src/shell/infer/mod.rs

@ -3,12 +3,6 @@ use log::debug;
use std::ffi::OsStr; use std::ffi::OsStr;
use sysinfo::{ProcessExt, System, SystemExt}; use sysinfo::{ProcessExt, System, SystemExt};
#[derive(Debug)]
struct ProcessInfo {
parent_pid: Option<u32>,
command: String,
}
pub fn infer_shell() -> Option<Box<dyn Shell>> { pub fn infer_shell() -> Option<Box<dyn Shell>> {
let mut system = System::new(); let mut system = System::new();
let mut current_pid = sysinfo::get_current_pid().ok(); let mut current_pid = sysinfo::get_current_pid().ok();

Loading…
Cancel
Save