Fix Clippy warnings introduced with Rust 1.40

parent 87fc0364
Pipeline #104683047 passed with stages
in 31 minutes and 9 seconds
......@@ -43,7 +43,8 @@ clippy:
${CARGO_CMD} clippy -- -Dwarnings \
-Arenamed_and_removed_lints \
-Aclippy::new_without_default \
-Aclippy::needless_range_loop
-Aclippy::needless_range_loop \
-Aclippy::missing_safety_doc
rustfmt-check:
rustfmt --check src/lib.rs src/bin/ivm.rs
......
......@@ -11,7 +11,7 @@ use libinko::vm::machine::Machine;
use libinko::vm::state::State;
fn print_usage(options: &Options) {
print_stderr(&options.usage("Usage: ivm FILE [OPTIONS]").to_string());
print_stderr(&options.usage("Usage: ivm FILE [OPTIONS]"));
}
fn print_stderr(message: &str) {
......
......@@ -124,7 +124,7 @@ impl Process {
config: &Config,
) -> RcProcess {
let local_data = LocalData {
allocator: LocalAllocator::new(global_allocator.clone(), config),
allocator: LocalAllocator::new(global_allocator, config),
context: Box::new(context),
panic_handler: ObjectPointer::null(),
thread_id: None,
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment