Run rustfmt
This commit is contained in:
parent
d6bb6704eb
commit
56e584fe76
2 changed files with 318 additions and 306 deletions
|
@ -113,7 +113,11 @@ macro_rules! pub_state_base {
|
|||
}
|
||||
|
||||
/// Joins the specified channel or chanlist using the specified key or keylist.
|
||||
pub fn send_join_with_keys<S1, S2>(&self, chanlist: &str, keylist: &str) -> error::Result<()>
|
||||
pub fn send_join_with_keys<S1, S2>(
|
||||
&self,
|
||||
chanlist: &str,
|
||||
keylist: &str,
|
||||
) -> error::Result<()>
|
||||
where
|
||||
S1: fmt::Display,
|
||||
S2: fmt::Display,
|
||||
|
@ -133,7 +137,7 @@ macro_rules! pub_state_base {
|
|||
}
|
||||
Ok(())
|
||||
}
|
||||
}
|
||||
};
|
||||
}
|
||||
|
||||
macro_rules! pub_sender_base {
|
||||
|
@ -278,7 +282,12 @@ macro_rules! pub_sender_base {
|
|||
|
||||
/// Changes the mode of the target by force.
|
||||
/// If `modeparams` is an empty string, it won't be included in the message.
|
||||
pub fn send_samode<S1, S2, S3>(&self, target: S1, mode: S2, modeparams: S3) -> error::Result<()>
|
||||
pub fn send_samode<S1, S2, S3>(
|
||||
&self,
|
||||
target: S1,
|
||||
mode: S2,
|
||||
modeparams: S3,
|
||||
) -> error::Result<()>
|
||||
where
|
||||
S1: fmt::Display,
|
||||
S2: fmt::Display,
|
||||
|
@ -338,7 +347,10 @@ macro_rules! pub_sender_base {
|
|||
{
|
||||
let msg = msg.to_string();
|
||||
for line in msg.split("\r\n") {
|
||||
self.send(PRIVMSG(target.to_string(), format!("\u{001}{}\u{001}", line)))?
|
||||
self.send(PRIVMSG(
|
||||
target.to_string(),
|
||||
format!("\u{001}{}\u{001}", line),
|
||||
))?
|
||||
}
|
||||
Ok(())
|
||||
}
|
||||
|
@ -414,7 +426,7 @@ macro_rules! pub_sender_base {
|
|||
{
|
||||
self.send_ctcp(target, "TIME")
|
||||
}
|
||||
}
|
||||
};
|
||||
}
|
||||
|
||||
/// A stream of `Messages` received from an IRC server via an `Client`.
|
||||
|
|
|
@ -20,7 +20,7 @@ use tokio_util::codec::Framed;
|
|||
use crate::{
|
||||
client::data::Config,
|
||||
error,
|
||||
proto::{Command, Response, IrcCodec, Message},
|
||||
proto::{Command, IrcCodec, Message, Response},
|
||||
};
|
||||
|
||||
/// Pinger-based futures helper.
|
||||
|
|
Loading…
Reference in a new issue