diff --git a/example/intkey_multiply/cli/src/multiply.rs b/example/intkey_multiply/cli/src/multiply.rs index 5da77c1f..c7f25dd4 100644 --- a/example/intkey_multiply/cli/src/multiply.rs +++ b/example/intkey_multiply/cli/src/multiply.rs @@ -34,7 +34,7 @@ pub fn do_multiply( let public_key = context.get_public_key(&private_key)?.as_hex(); let factory = signing::CryptoFactory::new(&*context); let signer = factory.new_signer(&private_key); - let payload = vec![name_a, name_b, name_c].join(","); + let payload = [name_a, name_b, name_c].join(","); let txn_payload = payload.as_bytes(); if output.is_empty() { diff --git a/sdks/rust/build.rs b/sdks/rust/build.rs index dfb3d61c..cf2c9ab5 100644 --- a/sdks/rust/build.rs +++ b/sdks/rust/build.rs @@ -57,14 +57,14 @@ fn main() { .expect("Unable to write mod file"); protoc_rust::Codegen::new() - .out_dir(&dest_path.to_str().expect("Invalid proto destination path")) + .out_dir(dest_path.to_str().expect("Invalid proto destination path")) .inputs( &proto_src_files .iter() .map(|a| a.as_ref()) .collect::>(), ) - .includes(&["src", "protos"]) + .includes(["src", "protos"]) .customize(Customize::default()) .run() .expect("unable to run protoc"); diff --git a/tp/src/main.rs b/tp/src/main.rs index dc1cd38c..5438a0ae 100644 --- a/tp/src/main.rs +++ b/tp/src/main.rs @@ -65,11 +65,11 @@ fn main() { if matches.is_present("admin_allow_all") { warn!("Starting Sabre transaction processor without admin key verifcation"); SabreHandler::new(SabreTransactionHandler::new(Box::new( - admin::AllowAllAdminPermission::default(), + admin::AllowAllAdminPermission, ))) } else { SabreHandler::new(SabreTransactionHandler::new(Box::new( - admin::SettingsAdminPermission::default(), + admin::SettingsAdminPermission, ))) } };