Skip to content
This repository was archived by the owner on Jun 17, 2025. It is now read-only.

Commit 300e583

Browse files
committed
Run cargo fmt
1 parent 1b1d447 commit 300e583

File tree

26 files changed

+34
-34
lines changed

26 files changed

+34
-34
lines changed

scripty_audio_handler/src/events/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,4 +10,4 @@ pub use driver_connect::driver_connect;
1010
pub use driver_disconnect::driver_disconnect;
1111
pub use rtp_packet::rtp_packet;
1212
pub use speaking_state_update::speaking_state_update;
13-
pub use voice_tick::{voice_tick, VoiceTickContext};
13+
pub use voice_tick::{VoiceTickContext, voice_tick};

scripty_bot_utils/src/background_tasks/tasks/basic_stats_update.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ use std::{sync::Arc, time::Duration};
33
use scripty_metrics::Metrics;
44
use serenity::gateway::client::Context;
55

6-
use crate::{background_tasks::core::BackgroundTask, Error};
6+
use crate::{Error, background_tasks::core::BackgroundTask};
77

88
/// Updates bot stats in Prometheus every 20 seconds.
99
pub struct BasicStatsUpdater(Arc<Metrics>, Context);

scripty_bot_utils/src/background_tasks/tasks/bot_list_poster.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@ use std::{sync::Arc, time::Duration};
22

33
use reqwest::Client;
44
use scripty_botlists::{
5+
PostStats,
6+
StatPoster,
57
botlist_me::BotListMe,
68
discord_bots_gg::DiscordBotsGG,
79
discordbotlist_com::DiscordBotListCom,
@@ -12,13 +14,11 @@ use scripty_botlists::{
1214
infinitybots_gg::InfinityBotsGG,
1315
top_gg::TopGG,
1416
voidbots_net::VoidBotsNet,
15-
PostStats,
16-
StatPoster,
1717
};
1818
use scripty_config::BotListsConfig;
1919
use serenity::gateway::client::Context;
2020

21-
use crate::{background_tasks::core::BackgroundTask, Error};
21+
use crate::{Error, background_tasks::core::BackgroundTask};
2222

2323
pub struct BotListUpdater {
2424
ctx: Context,

scripty_bot_utils/src/background_tasks/tasks/cmd_latency_clear.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ use std::time::Duration;
22

33
use serenity::gateway::client::Context;
44

5-
use crate::{background_tasks::core::BackgroundTask, Error};
5+
use crate::{Error, background_tasks::core::BackgroundTask};
66

77
/// Clears stale latency metrics every 2 minutes to free up memory.
88
pub struct CommandLatencyClearer;

scripty_bot_utils/src/globals.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ use std::sync::Arc;
33
use once_cell::sync::OnceCell;
44
use serenity::cache::Cache;
55

6-
use crate::{dm_support::DmSupportStatus, Data};
6+
use crate::{Data, dm_support::DmSupportStatus};
77

88
pub static CLIENT_CACHE: OnceCell<Arc<Cache>> = OnceCell::new();
99
pub static CLIENT_DATA: OnceCell<Arc<Data>> = OnceCell::new();

scripty_bot_utils/src/handler/pre_command.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
use poise::BoxFuture;
22

3-
use crate::{types::InvocationData, Context};
3+
use crate::{Context, types::InvocationData};
44

55
async fn _pre_command(ctx: Context<'_>) {
66
scripty_metrics::measure_end_latency(ctx.id());

scripty_core/src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@ use std::{fs::OpenOptions, time::SystemTime};
55

66
use fenrir_rs::{NetworkingBackend, SerializationFormat};
77
use fern::{
8-
colors::{Color, ColoredLevelConfig},
98
Dispatch,
9+
colors::{Color, ColoredLevelConfig},
1010
};
1111
use rlimit::Resource;
1212
use url::Url;

scripty_data_storage/src/crypto.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#![allow(dead_code)]
22

3-
use aes_gcm::{aead, aead::Aead, Aes256Gcm, Key, KeyInit, Nonce};
3+
use aes_gcm::{Aes256Gcm, Key, KeyInit, Nonce, aead, aead::Aead};
44
use once_cell::sync::OnceCell;
55
use rand::RngCore;
66

scripty_data_type/src/call_death_struct.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
use std::sync::{
2-
atomic::{fence, AtomicU8, Ordering},
32
Arc,
3+
atomic::{AtomicU8, Ordering, fence},
44
};
55

66
use dashmap::DashMap;
@@ -76,7 +76,7 @@ impl Drop for CallDeath {
7676
if last {
7777
if let Some(v) = self.inner.0.remove(&self.guild_id) {
7878
assert_eq!(
79-
v.1 .1.load(Ordering::SeqCst),
79+
v.1.1.load(Ordering::SeqCst),
8080
0,
8181
"we should be the final instance of this call"
8282
);

scripty_i18n/src/bundles.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
use std::str::FromStr;
22

33
use dashmap::mapref::one::Ref;
4-
use fluent::{bundle::FluentBundle, FluentResource};
4+
use fluent::{FluentResource, bundle::FluentBundle};
55
use intl_memoizer::concurrent::IntlLangMemoizer;
66
use unic_langid::LanguageIdentifier;
77

0 commit comments

Comments
 (0)