style(tvldb): Add blank lines between items
This makes the code slightly more readable. For users that use editors without semantic navigation, this also makes it easier to jump around between items in the files. I looked into whether a rustfmt setting exists for this, but unfortunately the answer is currently no. Change-Id: I37b19fa6ab038c71b924c45dbc12b298e660e8cf Reviewed-on: https://cl.tvl.fyi/c/depot/+/827 Reviewed-by: BuildkiteCI Reviewed-by: eta <eta@theta.eu.org> Tested-by: BuildkiteCI
This commit is contained in:
parent
03076c3977
commit
78bfb66a95
3 changed files with 23 additions and 0 deletions
|
|
@ -52,6 +52,7 @@ impl App {
|
|||
.send_notice(nick, format!("[{}] \x0304Error:\x0f {}", chan, msg))?;
|
||||
Ok(())
|
||||
}
|
||||
|
||||
pub fn keyword_from_captures(
|
||||
&mut self,
|
||||
learn: &::regex::Captures,
|
||||
|
|
@ -78,6 +79,7 @@ impl App {
|
|||
}
|
||||
Ok(kwd)
|
||||
}
|
||||
|
||||
pub fn handle_move(
|
||||
&mut self,
|
||||
target: &str,
|
||||
|
|
@ -114,6 +116,7 @@ impl App {
|
|||
}
|
||||
Ok(())
|
||||
}
|
||||
|
||||
pub fn handle_learn(
|
||||
&mut self,
|
||||
target: &str,
|
||||
|
|
@ -129,6 +132,7 @@ impl App {
|
|||
.send_notice(target, kwd.format_entry(idx).unwrap())?;
|
||||
Ok(())
|
||||
}
|
||||
|
||||
pub fn handle_insert_last_quote(
|
||||
&mut self,
|
||||
target: &str,
|
||||
|
|
@ -152,6 +156,7 @@ impl App {
|
|||
.send_notice(target, kwd.format_entry(idx).unwrap())?;
|
||||
Ok(())
|
||||
}
|
||||
|
||||
pub fn handle_increment(
|
||||
&mut self,
|
||||
target: &str,
|
||||
|
|
@ -183,6 +188,7 @@ impl App {
|
|||
}
|
||||
Ok(())
|
||||
}
|
||||
|
||||
pub fn handle_query(
|
||||
&mut self,
|
||||
target: &str,
|
||||
|
|
@ -258,6 +264,7 @@ impl App {
|
|||
}
|
||||
Ok(())
|
||||
}
|
||||
|
||||
pub fn handle_privmsg(&mut self, from: &str, chan: &str, msg: &str) -> Result<(), Error> {
|
||||
lazy_static! {
|
||||
static ref LEARN_RE: Regex =
|
||||
|
|
@ -297,6 +304,7 @@ impl App {
|
|||
}
|
||||
Ok(())
|
||||
}
|
||||
|
||||
pub fn handle_msg(&mut self, m: Message) -> Result<(), Error> {
|
||||
match m.command {
|
||||
Command::PRIVMSG(channel, message) => {
|
||||
|
|
@ -320,6 +328,7 @@ impl App {
|
|||
Ok(())
|
||||
}
|
||||
}
|
||||
|
||||
fn main() -> Result<(), Error> {
|
||||
println!("[+] loading configuration");
|
||||
let default_log_filter = "paroxysm=info".to_string();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue