Skip to content

fix: use permissive cors like actix

Sign in for the full log view
GitHub Actions / clippy failed Feb 29, 2024 in 0s

clippy

2 errors

Details

Results

Message level Amount
Internal compiler error 0
Error 2
Warning 0
Note 0
Help 0

Versions

  • rustc 1.76.0 (07dca489a 2024-02-04)
  • cargo 1.76.0 (c84b36747 2024-01-18)
  • clippy 0.1.76 (07dca48 2024-02-04)

Annotations

Check failure on line 19 in apps/server/src/routes/widget.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

unused imports: `ACCEPT`, `AUTHORIZATION`, `Method`

error: unused imports: `ACCEPT`, `AUTHORIZATION`, `Method`
  --> apps/server/src/routes/widget.rs:19:18
   |
19 |         header::{ACCEPT, AUTHORIZATION},
   |                  ^^^^^^  ^^^^^^^^^^^^^
20 |         Method, StatusCode,
   |         ^^^^^^

Check failure on line 13 in apps/server/src/routes/widget.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

unused import: `Any`

error: unused import: `Any`
  --> apps/server/src/routes/widget.rs:13:24
   |
13 | use tower_http::cors::{Any, CorsLayer};
   |                        ^^^
   |
   = note: `-D unused-imports` implied by `-D warnings`
   = help: to override `-D warnings` add `#[allow(unused_imports)]`