Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
fafhrd91 committed Apr 8, 2024
1 parent 9909c1a commit 547fcb3
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/cov.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,6 @@ jobs:
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v4
with:
token: ${{ secrets.CODECOV }}
token: ${{ secrets.CODECOV_TOKEN }}
files: lcov.info
fail_ci_if_error: true
8 changes: 4 additions & 4 deletions ntex/src/web/app.rs
Original file line number Diff line number Diff line change
Expand Up @@ -592,10 +592,8 @@ impl<Err: ErrorRenderer> Service<WebRequest<Err>> for Filter<Err> {
#[cfg(test)]

Check warning on line 592 in ntex/src/web/app.rs

View workflow job for this annotation

GitHub Actions / Rustfmt (stable)

Diff in /home/runner/work/ntex/ntex/ntex/src/web/app.rs

Check warning on line 592 in ntex/src/web/app.rs

View workflow job for this annotation

GitHub Actions / Rustfmt (stable)

Diff in /home/runner/work/ntex/ntex/ntex/src/web/app.rs
mod tests {
use super::*;
use crate::http::header::{self, HeaderValue};
use crate::http::{Method, StatusCode};
use crate::service::fn_service;
use crate::util::{Bytes, Ready};
use crate::http::{Method, StatusCode, header, header::HeaderValue};
use crate::{service::fn_service, util::Ready};
use crate::web::test::{call_service, init_service, read_body, TestRequest};
use crate::web::{self, middleware::DefaultHeaders, HttpRequest, HttpResponse};

Expand Down Expand Up @@ -775,6 +773,8 @@ mod tests {
#[cfg(feature = "url")]
#[crate::rt_test]
async fn test_external_resource() {
use crate::util::Bytes;

let srv = init_service(
App::new()
.external_resource("youtube", "https://youtube.com/watch/{video_id}")
Expand Down

0 comments on commit 547fcb3

Please sign in to comment.