Fix clippy warnings
All checks were successful
Rust / check (push) Successful in 48s

This commit is contained in:
August 2026-06-02 15:12:03 -04:00
parent ab1f7ec190
commit d4be6222a1
Signed by: shibedrill
SSH Key Fingerprint: SHA256:M0m3JW1s38BgO2t0fG146Yxd9OJ2IOqkvCAsuRHQ6Pw
3 changed files with 7 additions and 4 deletions

View File

@ -2,7 +2,6 @@ use anyhow::Error;
use vergen::*; use vergen::*;
fn main() -> Result<(), Error> { fn main() -> Result<(), Error> {
let build = BuildBuilder::all_build()?; let build = BuildBuilder::all_build()?;
let cargo = CargoBuilder::all_cargo()?; let cargo = CargoBuilder::all_cargo()?;
let rustc = RustcBuilder::all_rustc()?; let rustc = RustcBuilder::all_rustc()?;

View File

@ -62,7 +62,7 @@ pub async fn event_handler(
.message(ctx.http.clone(), new_message.id) .message(ctx.http.clone(), new_message.id)
.await .await
.unwrap(); .unwrap();
if ( !real_message.embeds.is_empty() if (!real_message.embeds.is_empty()
|| real_message.content.contains("https://tenor.com/view")) || real_message.content.contains("https://tenor.com/view"))
& rand::rng().random_bool(0.25) & rand::rng().random_bool(0.25)
{ {

View File

@ -16,7 +16,6 @@ extern crate log;
// Definitions // Definitions
mod definitions; mod definitions;
use crate::command::devel;
use crate::definitions::event_handler; use crate::definitions::event_handler;
use crate::definitions::*; use crate::definitions::*;
@ -51,7 +50,12 @@ async fn main() {
pretty_env_logger::init(); pretty_env_logger::init();
info!("Initialized logger successfully"); info!("Initialized logger successfully");
info!("Current version: {}", env!("CARGO_PKG_VERSION")); info!("Current version: {}", env!("CARGO_PKG_VERSION"));
info!("Commit info: {} on {}: {}", env!("GIT_COMMIT_ID_SHORT"), env!("GIT_COMMIT_DATE"), env!("GIT_COMMIT_MSG")); info!(
"Commit info: {} on {}: {}",
env!("GIT_COMMIT_ID_SHORT"),
env!("GIT_COMMIT_DATE"),
env!("GIT_COMMIT_MSG")
);
match env::current_exe() { match env::current_exe() {
Ok(exe) => info!("Got current exe successfully: {}", exe.display()), Ok(exe) => info!("Got current exe successfully: {}", exe.display()),
Err(err) => error!("Failed to get exe: {}", err), Err(err) => error!("Failed to get exe: {}", err),