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:
parent
9e65540cd8
commit
8b73701405
7 changed files with 21 additions and 16 deletions
|
@ -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()
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue