1
0
Fork 0
mirror of https://gitlab.com/msrd0/gotham-restful.git synced 2025-05-10 00:20:43 +00:00

replace some std::error::Error bounds with Into<HandlerError>

This commit is contained in:
Dominic 2021-02-03 22:58:08 +01:00
parent 9e65540cd8
commit 8b73701405
Signed by: msrd0
GPG key ID: DCC8C247452E98F9
7 changed files with 21 additions and 16 deletions

View file

@ -1,5 +1,5 @@
#![cfg_attr(not(feature = "auth"), allow(unused_imports))]
use super::SECURITY_NAME;
use futures_util::{future, future::FutureExt};
use gotham::{
anyhow,
@ -67,7 +67,7 @@ fn get_security(state: &mut State) -> IndexMap<String, ReferenceOr<SecuritySchem
}
#[cfg(not(feature = "auth"))]
fn get_security(state: &mut State) -> (Vec<SecurityRequirement>, IndexMap<String, ReferenceOr<SecurityScheme>>) {
fn get_security(_state: &mut State) -> IndexMap<String, ReferenceOr<SecurityScheme>> {
Default::default()
}