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::*; pub use webhook::*;
use crate::types::Shared; use crate::types::Shared;
#[cfg(feature = "client")]
use std::sync::{Arc, RwLock}; use std::sync::{Arc, RwLock};
#[cfg(feature = "client")] #[cfg(feature = "client")]

View File

@ -4,6 +4,7 @@
//! All the types, entities, events and interfaces of the Spacebar API. //! All the types, entities, events and interfaces of the Spacebar API.
#[cfg(feature = "client")]
use std::sync::{Arc, RwLock}; use std::sync::{Arc, RwLock};
pub use config::*; 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 where
E: de::Error, E: de::Error,
V: fmt::Display, 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 // TODO: Make actual error type
match me { match me {
LocalResult::None => Err(E::custom("value is not a legal timestamp")), 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")) Err(E::custom("value is an ambiguous timestamp"))
} }
LocalResult::Single(val) => Ok(val), LocalResult::Single(val) => Ok(val),