Clippy lint fixes for rustc 1.88.0
Test: m rustClippyJson
Bug: 435702100
Flag: EXEMPT refactor
Change-Id: I7c71ec94d76f3bac5201606b01c693f3075ed46a
diff --git a/codelab/service/hello_service.rs b/codelab/service/hello_service.rs
index ec35c07..2c104a6 100644
--- a/codelab/service/hello_service.rs
+++ b/codelab/service/hello_service.rs
@@ -31,7 +31,7 @@
impl IHello for Hello {
fn LogMessage(&self, msg: &str) -> Result<()> {
- info!("{}", msg);
+ info!("{msg}");
Ok(())
}
fn getMessage(&self) -> Result<String> {
diff --git a/scripts/redundancy_check/srcs/main.rs b/scripts/redundancy_check/srcs/main.rs
index 7e43a71..abbfba3 100644
--- a/scripts/redundancy_check/srcs/main.rs
+++ b/scripts/redundancy_check/srcs/main.rs
@@ -144,7 +144,7 @@
.unwrap();
let wasted_bytes: u64 =
instances.iter().filter(|x| *x != preferred_instance).map(|x| x.size).sum();
- println!("Found redundant AIDL instances for {:?}", group_key);
+ println!("Found redundant AIDL instances for {group_key:?}");
for instance in instances.iter() {
println!(
"\t{}\t({:.2} KiB){}",