clear warnings
This commit is contained in:
parent
32677b8cd9
commit
0c9e9cf367
|
@ -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")]
|
||||
|
|
|
@ -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::*;
|
||||
|
|
|
@ -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),
|
||||
|
|
Loading…
Reference in New Issue