diff options
author | 2025-01-02 16:59:34 -0800 | |
---|---|---|
committer | 2025-01-02 16:59:34 -0800 | |
commit | b53ef230f2f9d9e2e16ddf137ff5c208514c7bfd (patch) | |
tree | 51d84d815d45aeaff9d5be87b687c7614e00d77e | |
parent | a36ab317dd61efc23efa430d9eb28bcb0b3ab0fe (diff) | |
parent | 41c28bdf0a97fdd218fdd4f2a0e1a4444cc2a4b1 (diff) |
Merge "Derive Debug for binder::Accessor" into main
-rw-r--r-- | libs/binder/rust/src/system_only.rs | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/libs/binder/rust/src/system_only.rs b/libs/binder/rust/src/system_only.rs index 1a58d6b44d..288c54bab9 100644 --- a/libs/binder/rust/src/system_only.rs +++ b/libs/binder/rust/src/system_only.rs @@ -24,21 +24,16 @@ use std::os::raw::c_char; use libc::{sockaddr, sockaddr_un, sockaddr_vm, socklen_t}; use std::sync::Arc; -use std::{fmt, mem, ptr}; +use std::{mem, ptr}; /// Rust wrapper around ABinderRpc_Accessor objects for RPC binder service management. /// /// Dropping the `Accessor` will drop the underlying object and the binder it owns. +#[derive(Debug)] pub struct Accessor { accessor: *mut sys::ABinderRpc_Accessor, } -impl fmt::Debug for Accessor { - fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result { - write!(f, "ABinderRpc_Accessor({:p})", self.accessor) - } -} - /// Socket connection info required for libbinder to connect to a service. #[derive(Debug, Clone, Copy, PartialEq, Eq)] pub enum ConnectionInfo { |