clear warnings

This commit is contained in:
Quat3rnion 2024-06-04 12:57:48 -04:00
parent 32677b8cd9
commit 0c9e9cf367
3 changed files with 4 additions and 2 deletions

View File

@ -28,6 +28,7 @@ pub use voice_state::*;
pub use webhook::*;
use crate::types::Shared;
#[cfg(feature = "client")]
use std::sync::{Arc, RwLock};
#[cfg(feature = "client")]

View File

@ -4,6 +4,7 @@
//! All the types, entities, events and interfaces of the Spacebar API.
#[cfg(feature = "client")]
use std::sync::{Arc, RwLock};
pub use config::*;

View File

@ -245,7 +245,7 @@ pub mod ts_seconds_option_str {
}
}
pub(crate) fn serde_from<T, E, V>(me: LocalResult<T>, ts: &V) -> Result<T, E>
pub(crate) fn serde_from<T, E, V>(me: LocalResult<T>, _ts: &V) -> Result<T, E>
where
E: de::Error,
V: fmt::Display,
@ -254,7 +254,7 @@ pub(crate) fn serde_from<T, E, V>(me: LocalResult<T>, ts: &V) -> Result<T, E>
// TODO: Make actual error type
match me {
LocalResult::None => Err(E::custom("value is not a legal timestamp")),
LocalResult::Ambiguous(min, max) => {
LocalResult::Ambiguous(_min, _max) => {
Err(E::custom("value is an ambiguous timestamp"))
}
LocalResult::Single(val) => Ok(val),