Skip to content

Commit

Permalink
fixup! chore(ffi): avoid hardcoding clang version
Browse files Browse the repository at this point in the history
address clippy complaints
  • Loading branch information
richvdh committed Dec 11, 2024
1 parent a3a5d18 commit 3f15bca
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion bindings/matrix-sdk-crypto-ffi/build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ fn get_clang_major_version(clang_path: &PathBuf) -> String {
}

let clang_version = String::from_utf8(clang_output.stdout).expect("clang output is not utf8");
clang_version.split('.').next().expect("could not parse clang output").to_string()
clang_version.split('.').next().expect("could not parse clang output").to_owned()
}

fn main() -> Result<(), Box<dyn Error>> {
Expand Down
2 changes: 1 addition & 1 deletion bindings/matrix-sdk-ffi/build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ fn get_clang_major_version(clang_path: &PathBuf) -> String {
}

let clang_version = String::from_utf8(clang_output.stdout).expect("clang output is not utf8");
clang_version.split('.').next().expect("could not parse clang output").to_string()
clang_version.split('.').next().expect("could not parse clang output").to_owned()
}

fn main() -> Result<(), Box<dyn Error>> {
Expand Down

0 comments on commit 3f15bca

Please sign in to comment.