Skip to content

Commit

Permalink
Fixed lint warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
kitao committed Jul 30, 2024
1 parent 8a2fa63 commit 2953e3a
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions rust/pyxel-platform/build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -72,10 +72,7 @@ impl SDL2BindingsBuilder {
let function_name = "applicationSupportsSecureRestorableState";
let function_exists = Command::new("sh")
.arg("-c")
.arg(&format!(
"grep -q '{}' {}",
function_name, patch_target_path
))
.arg(format!("grep -q '{}' {}", function_name, patch_target_path))
.status()
.expect("Failed to execute grep command");
if !function_exists.success() {
Expand All @@ -85,7 +82,7 @@ impl SDL2BindingsBuilder {
);
let status = Command::new("sh")
.arg("-c")
.arg(&format!(
.arg(format!(
"sed -i '' '310i\\\n{}' {}",
patch_code, patch_target_path
))
Expand Down

0 comments on commit 2953e3a

Please sign in to comment.