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 vergen::*;
fn main() -> Result<(), Error> {
let build = BuildBuilder::all_build()?;
@ -13,4 +12,4 @@ fn main() -> Result<(), Error> {
.add_instructions(&rustc)?
.emit()?;
Ok(())
}
}

View File

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

View File

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

View File

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

View File

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