Skip to content

Commit

Permalink
fix(src/main): There are unused variables and unused import elements
Browse files Browse the repository at this point in the history
Signed-off-by: zhangshaozhi <[email protected]>
  • Loading branch information
xuesongbj committed Dec 1, 2021
1 parent 8734add commit 2ab8eae
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ use std::{io, thread};

use anyhow::Result;
use injector::InjectorConfig;
use jsonrpc::{start_server, Comm};
use jsonrpc::start_server;
use mount_injector::{MountInjectionGuard, MountInjector};
use nix::sys::signal::{signal, SigHandler, Signal};
use nix::unistd::{pipe, read, write};
Expand Down Expand Up @@ -179,7 +179,7 @@ fn main() -> Result<()> {
Err(e) => Err(anyhow::Error::msg(e.to_string())),
};

let (tx, rx) = mpsc::channel();
let (tx, _rx) = mpsc::channel();
{
let hookfs = match &mount_injector {
Ok(e) => Some(e.hookfs.clone().into()),
Expand Down

0 comments on commit 2ab8eae

Please sign in to comment.