Update source for new lints in 1.52.1
This CL updates file.rs to respond to new lints introduced in the 1.52.1
compiler update.
Test: TH
Change-Id: I828cdeea4e33a6507c61e77918dc79a5af654914
diff --git a/authfs/src/file.rs b/authfs/src/file.rs
index 033dbd6..44d5000 100644
--- a/authfs/src/file.rs
+++ b/authfs/src/file.rs
@@ -35,7 +35,7 @@
new_spibinder(binder_rpc_unstable_bindgen::RpcClient(cid, RPC_SERVICE_PORT) as *mut AIBinder)
};
if let Some(ibinder) = ibinder {
- Ok(IVirtFdService::try_from(ibinder).map_err(|e| {
+ Ok(<dyn IVirtFdService>::try_from(ibinder).map_err(|e| {
io::Error::new(
io::ErrorKind::AddrNotAvailable,
format!("Cannot connect to RPC service: {}", e),