mirror of
https://github.com/mii443/izoli.git
synced 2025-08-22 16:05:40 +00:00
supress warn
This commit is contained in:
@ -42,6 +42,8 @@ fn main() {
|
|||||||
.enter(Box::new(|| {
|
.enter(Box::new(|| {
|
||||||
let cmd = CString::new("/usr/bin/bash").unwrap();
|
let cmd = CString::new("/usr/bin/bash").unwrap();
|
||||||
let args: Vec<CString> = vec![];
|
let args: Vec<CString> = vec![];
|
||||||
|
|
||||||
|
#[allow(irrefutable_let_patterns)]
|
||||||
if let Err(e) = execvp(&cmd, &args.as_ref()) {
|
if let Err(e) = execvp(&cmd, &args.as_ref()) {
|
||||||
eprintln!("execvp failed: {:?}", e);
|
eprintln!("execvp failed: {:?}", e);
|
||||||
return 127;
|
return 127;
|
||||||
|
Reference in New Issue
Block a user