Formatting
This commit is contained in:
parent
2967c743d6
commit
b45dc20529
5
build.rs
5
build.rs
@ -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(())
|
||||
}
|
||||
}
|
||||
|
@ -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(())
|
||||
}
|
||||
|
||||
|
@ -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(())
|
||||
}
|
||||
}
|
||||
|
@ -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;
|
||||
|
@ -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,
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user