fix warning

This commit is contained in:
Elfein Landers 2022-08-06 22:24:11 -07:00
parent 77189e9e3c
commit 8e09af7f15

View file

@ -58,11 +58,7 @@ fn main() {
// panic!("Test Infrastructure missing"); // panic!("Test Infrastructure missing");
} }
Subcommand::Doc => { Subcommand::Doc => {
let machine_text = options let machine_text = options.arguments.get(0).cloned().unwrap_or_default();
.arguments
.get(0)
.cloned()
.unwrap_or_else(|| String::new());
match machine(machine_text) { match machine(machine_text) {
MachineType::X86_64 => { MachineType::X86_64 => {