Address a number of clippy complaints
This commit is contained in:
@@ -15,6 +15,10 @@ impl AsRef<dyn telepathy::ConnectionInterfaceRequests + 'static> for std::rc::Rc
|
||||
}
|
||||
}
|
||||
|
||||
type ChannelSpec = (dbus::Path<'static>, HashMap<String, VarArg>);
|
||||
|
||||
type RequestableChannelSpec = (HashMap<String, VarArg>, Vec<String>);
|
||||
|
||||
impl telepathy::ConnectionInterfaceRequests for Connection {
|
||||
fn create_channel(
|
||||
&self,
|
||||
@@ -33,14 +37,12 @@ impl telepathy::ConnectionInterfaceRequests for Connection {
|
||||
Err(MethodErr::no_arg()) // FIXME: should be NotImplemented?
|
||||
}
|
||||
|
||||
fn channels(&self) -> Result<Vec<(dbus::Path<'static>, HashMap<String, VarArg>)>, MethodErr> {
|
||||
fn channels(&self) -> Result<Vec<ChannelSpec>, MethodErr> {
|
||||
println!("Connection<{}>::channels()", self.id);
|
||||
Ok(vec![])
|
||||
}
|
||||
|
||||
fn requestable_channel_classes(
|
||||
&self,
|
||||
) -> Result<Vec<(HashMap<String, VarArg>, Vec<String>)>, MethodErr> {
|
||||
fn requestable_channel_classes(&self) -> Result<Vec<RequestableChannelSpec>, MethodErr> {
|
||||
println!("Connection<{}>::requestable_channel_classes()", self.id);
|
||||
Ok(crate::padfoot::requestables())
|
||||
}
|
||||
|
Reference in New Issue
Block a user