diff options
| author | Nathan Perry <np@nathanperry.dev> | 2024-08-16 03:09:00 -0400 |
|---|---|---|
| committer | Nathan Perry <np@nathanperry.dev> | 2024-08-16 03:09:00 -0400 |
| commit | 7d47be4c40ac8f9a9c33ae8c78e44d20c2c46ef6 (patch) | |
| tree | 9da7169c81985e4daa6698586945536782becf91 /src/util/mod.rs | |
| parent | a9e284db95dc39d61c91089126bc8848d36fa4f7 (diff) | |
windows: windows_util -> util::windows
Diffstat (limited to 'src/util/mod.rs')
| -rw-r--r-- | src/util/mod.rs | 9 |
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, } } |
