Formatting

This commit is contained in:
August 2024-10-05 00:31:29 -04:00
parent 2967c743d6
commit b45dc20529
Signed by: shibedrill
GPG Key ID: 5FE0CB25945EFAA2
5 changed files with 9 additions and 14 deletions

View File

@ -1,6 +1,5 @@
use vergen::*;
use anyhow::Error; use anyhow::Error;
use vergen::*;
fn main() -> Result<(), Error> { fn main() -> Result<(), Error> {
let build = BuildBuilder::all_build()?; let build = BuildBuilder::all_build()?;
@ -13,4 +12,4 @@ fn main() -> Result<(), Error> {
.add_instructions(&rustc)? .add_instructions(&rustc)?
.emit()?; .emit()?;
Ok(()) Ok(())
} }

View File

@ -1,4 +1,3 @@
use crate::Context; use crate::Context;
use crate::Error; use crate::Error;
@ -16,7 +15,8 @@ pub async fn version(ctx: Context<'_>) -> Result<(), Error> {
env!("VERGEN_BUILD_TIMESTAMP"), env!("VERGEN_BUILD_TIMESTAMP"),
env!("VERGEN_CARGO_TARGET_TRIPLE"), env!("VERGEN_CARGO_TARGET_TRIPLE"),
env!("VERGEN_RUSTC_SEMVER"), env!("VERGEN_RUSTC_SEMVER"),
)).await?; ))
.await?;
Ok(()) Ok(())
} }

View File

@ -6,9 +6,7 @@ use poise::serenity_prelude as serenity;
use crate::settings::*; use crate::settings::*;
// Data passed to every command (shared state) // Data passed to every command (shared state)
pub struct Data { pub struct Data {}
}
// Errors returnable by a command // Errors returnable by a command
pub type Error = Box<dyn std::error::Error + Send + Sync>; pub type Error = Box<dyn std::error::Error + Send + Sync>;
@ -22,9 +20,8 @@ pub async fn event_handler(
_framework: poise::FrameworkContext<'_, Data, Error>, _framework: poise::FrameworkContext<'_, Data, Error>,
_data: &Data, _data: &Data,
) -> Result<(), Error> { ) -> Result<(), Error> {
// Future event handling will go here // Future event handling will go here
// Data will contain the database connection // Data will contain the database connection
Ok(()) Ok(())
} }

View File

@ -13,8 +13,8 @@ extern crate log;
// Definitions // Definitions
mod definitions; mod definitions;
use crate::definitions::event_handler;
use crate::definitions::*; use crate::definitions::*;
use crate::definitions::event_handler as event_handler;
// Settings manager // Settings manager
mod settings; mod settings;

View File

@ -1,4 +1,3 @@
use structstruck;
use poise::serenity_prelude::*; use poise::serenity_prelude::*;
structstruck::strike! { structstruck::strike! {
@ -7,7 +6,7 @@ structstruck::strike! {
role: Role, role: Role,
message: Message, message: Message,
reaction: ReactionType, reaction: ReactionType,
variant: variant:
#[allow(dead_code)] #[allow(dead_code)]
enum ReactionRoleVariant { enum ReactionRoleVariant {
Standard, Standard,
@ -16,4 +15,4 @@ structstruck::strike! {
Reverse, Reverse,
} }
} }
} }