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 2 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
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