Fix a few bugs from combining features

This commit is contained in:
Emii Tatsuo 2020-11-25 20:37:43 -05:00
parent 475b256a5a
commit 0ea4c62731
Signed by: Emi
GPG Key ID: 68FAB2E2E6DFC98B
2 changed files with 3 additions and 3 deletions

View File

@ -7,7 +7,7 @@ use std::{fmt::Display, collections::VecDeque, hash::Hash, time::{Duration, Inst
/// Does not require a leaky bucket thread to empty it out, but may occassionally need to /// Does not require a leaky bucket thread to empty it out, but may occassionally need to
/// trim old keys using [`trim_keys()`]. /// trim old keys using [`trim_keys()`].
/// ///
/// [`trim_keys()`][Self::trim_keys()] /// [`trim_keys()`]: Self::trim_keys()
pub struct RateLimiter<K: Eq + Hash> { pub struct RateLimiter<K: Eq + Hash> {
log: DashMap<K, VecDeque<Instant>>, log: DashMap<K, VecDeque<Instant>>,
burst: usize, burst: usize,

View File

@ -84,7 +84,7 @@ pub trait UserManagementRoutes: private::Sealed {
F: Send + Sync + 'static + Future<Output = Result<Response>>; F: Send + Sync + 'static + Future<Output = Result<Response>>;
} }
impl<A: ToSocketAddrs> UserManagementRoutes for crate::Builder<A> { impl<A: ToSocketAddrs> UserManagementRoutes for crate::Server<A> {
/// Add pre-configured routes to the serve to handle authentication /// Add pre-configured routes to the serve to handle authentication
/// ///
/// See [`UserManagementRoutes::add_um_routes()`] /// See [`UserManagementRoutes::add_um_routes()`]
@ -357,5 +357,5 @@ fn render_settings_menu<UserData: Serialize + DeserializeOwned>(
mod private { mod private {
pub trait Sealed {} pub trait Sealed {}
impl<A> Sealed for crate::Builder<A> {} impl<A> Sealed for crate::Server<A> {}
} }