Skip to content

Commit

Permalink
clippy
Browse files Browse the repository at this point in the history
  • Loading branch information
goto-bus-stop committed Oct 27, 2024
1 parent 0083752 commit c60a301
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 6 deletions.
5 changes: 0 additions & 5 deletions src/handlers/emotes.rs
Original file line number Diff line number Diff line change
@@ -1,17 +1,12 @@
use crate::api::neocities;
use crate::handler::{Api, ChatCommand, Handler, MessageType};
use crate::SekshiBot;
use indoc::indoc;
use rusqlite::{Connection, OptionalExtension as _};
use shorten_url::shorten;

#[derive(Debug)]
pub struct Emotes;
impl Emotes {
pub fn new(_bot: &mut SekshiBot) -> anyhow::Result<Self> {
Ok(Self)
}

fn get_emote(&self, db: &Connection, name: &str) -> anyhow::Result<Option<String>> {
let url = db
.query_row("SELECT url FROM emotes WHERE name = ?", [name], |row| {
Expand Down
2 changes: 1 addition & 1 deletion src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ fn main() -> Result<ExitCode> {
};

let metrics_endpoint = args.metrics.as_deref().unwrap_or("0.0.0.0:3003");
let tx = setup_metrics(&metrics_endpoint)?;
let tx = setup_metrics(metrics_endpoint)?;

let result = (|| {
let bot = SekshiBot::connect(ConnectionOptions {
Expand Down

0 comments on commit c60a301

Please sign in to comment.