Fix some warnings
This commit is contained in:
parent
ac2602c4b8
commit
7988daf34d
2 changed files with 3 additions and 2 deletions
|
|
@ -54,11 +54,11 @@ impl ChatMsg for LogMsg {
|
|||
(nick, content)
|
||||
}
|
||||
|
||||
fn edit(nick: &str, content: &str) -> (Styled, Styled) {
|
||||
fn edit(_nick: &str, _content: &str) -> (Styled, Styled) {
|
||||
panic!("log is not editable")
|
||||
}
|
||||
|
||||
fn pseudo(nick: &str, content: &str) -> (Styled, Styled) {
|
||||
fn pseudo(_nick: &str, _content: &str) -> (Styled, Styled) {
|
||||
panic!("log is not editable")
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -57,6 +57,7 @@ fn run(mut conn: Connection, mut rx: mpsc::UnboundedReceiver<Request>) {
|
|||
}
|
||||
Request::Gc(tx) => {
|
||||
let _ = conn.execute_batch("ANALYZE; VACUUM;");
|
||||
drop(tx);
|
||||
}
|
||||
Request::Euph(r) => r.perform(&mut conn),
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue