Method call on clap::App moving ownership more than once
问题 Even after reading the chapters about reference ownership and borrowing, I cannot understand some things in the following code, effectively stopping me from calling more than one method from clap::App ! extern crate clap; use clap::App; fn main() { let mut app = App::new("name me").args_from_usage("<input_file> 'Sets the input file to use'"); let matches = app.get_matches(); app.print_help(); println!( "Using input file: {}", matches.value_of("input_file").unwrap() ); } Compiling this code