Skip to content
This repository has been archived by the owner on Feb 1, 2024. It is now read-only.

Fix lint introduced in 1.71.0 Rust #200

Open
wants to merge 3 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion example/intkey_multiply/cli/src/multiply.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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() {
Expand Down
4 changes: 2 additions & 2 deletions sdks/rust/build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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::<Vec<&str>>(),
)
.includes(&["src", "protos"])
.includes(["src", "protos"])
.customize(Customize::default())
.run()
.expect("unable to run protoc");
Expand Down
4 changes: 2 additions & 2 deletions tp/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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,
)))
}
};
Expand Down
Loading