From 3f15bca70180c4b8c99294282341655007fd9878 Mon Sep 17 00:00:00 2001
From: Richard van der Hoff <richard@matrix.org>
Date: Wed, 11 Dec 2024 18:40:20 +0000
Subject: [PATCH] fixup! chore(ffi): avoid hardcoding clang version

address clippy complaints
---
 bindings/matrix-sdk-crypto-ffi/build.rs | 2 +-
 bindings/matrix-sdk-ffi/build.rs        | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/bindings/matrix-sdk-crypto-ffi/build.rs b/bindings/matrix-sdk-crypto-ffi/build.rs
index c22ffefd1ab..14f2d11e10b 100644
--- a/bindings/matrix-sdk-crypto-ffi/build.rs
+++ b/bindings/matrix-sdk-crypto-ffi/build.rs
@@ -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>> {
diff --git a/bindings/matrix-sdk-ffi/build.rs b/bindings/matrix-sdk-ffi/build.rs
index d06db9f8171..2605a8fe514 100644
--- a/bindings/matrix-sdk-ffi/build.rs
+++ b/bindings/matrix-sdk-ffi/build.rs
@@ -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>> {