aboutsummaryrefslogtreecommitdiff
path: root/src/util/mod.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/util/mod.rs')
-rw-r--r--src/util/mod.rs9
1 files changed, 6 insertions, 3 deletions
diff --git a/src/util/mod.rs b/src/util/mod.rs
index fb4b552..d214957 100644
--- a/src/util/mod.rs
+++ b/src/util/mod.rs
@@ -37,6 +37,9 @@ use crate::{
mod rest_vec;
+#[cfg(windows)]
+pub mod windows;
+
pub use rest_vec::*;
pub async fn currently_playing(ctx: PoiseContext<'_>) -> bool {
@@ -66,9 +69,9 @@ pub async fn users_listening(ctx: &Context) -> anyhow::Result<bool> {
pub fn msg<U, E>(ctx: poise::Context<'_, U, E>) -> Option<&Message> {
match ctx {
poise::Context::Prefix(poise::PrefixContext {
- msg,
- ..
- }) => Some(msg),
+ msg,
+ ..
+ }) => Some(msg),
_ => None,
}
}