mirror of
https://github.com/clowzed/sero
synced 2024-06-15 21:05:00 +02:00
Mark layer as unused and format
This commit is contained in:
parent
aa68be4368
commit
148a79dbc3
|
@ -55,7 +55,7 @@ async fn app() -> Router {
|
|||
|
||||
let cloned_state = state.clone();
|
||||
|
||||
let cors_layer = CorsLayer::new()
|
||||
let _cors_layer = CorsLayer::new()
|
||||
.allow_methods(AllowMethods::any())
|
||||
.allow_headers(AllowHeaders::any())
|
||||
.allow_origin(AllowOrigin::predicate(move |origin, parts| {
|
||||
|
|
Loading…
Reference in a new issue