Showing 1 of 1 files from the diff.

@@ -134,12 +134,12 @@
Loading
134 134
        let inner = Rc::get_mut(&mut self.0).unwrap();
135 135
136 136
        let pos = inner.format.0.iter().position(|tf| match tf {
137 -
            FormatText::CustomRequestLog(inner_label, _) => label == inner_label,
137 +
            FormatText::CustomRequest(inner_label, _) => label == inner_label,
138 138
            _ => false,
139 139
        });
140 140
        match pos {
141 141
            Some(pos) => match &mut inner.format.0[pos] {
142 -
                FormatText::CustomRequestLog(_, inner_closure) => {
142 +
                FormatText::CustomRequest(_, inner_closure) => {
143 143
                    *inner_closure = Some(CustomRequestFn {
144 144
                        inner_fn: Rc::new(closure),
145 145
                    })
@@ -383,7 +383,7 @@
Loading
383 383
                        HeaderName::try_from(key.as_str()).unwrap(),
384 384
                    ),
385 385
                    "e" => FormatText::EnvironHeader(key.as_str().to_owned()),
386 -
                    "xi" => FormatText::CustomRequestLog(key.as_str().to_owned(), None),
386 +
                    "xi" => FormatText::CustomRequest(key.as_str().to_owned(), None),
387 387
                    _ => unreachable!(),
388 388
                })
389 389
            } else {
@@ -429,7 +429,7 @@
Loading
429 429
    RequestHeader(HeaderName),
430 430
    ResponseHeader(HeaderName),
431 431
    EnvironHeader(String),
432 -
    CustomRequestLog(String, Option<CustomRequestFn>),
432 +
    CustomRequest(String, Option<CustomRequestFn>),
433 433
}
434 434
435 435
#[derive(Clone)]
@@ -549,7 +549,7 @@
Loading
549 549
                };
550 550
                *self = s;
551 551
            }
552 -
            FormatText::CustomLog(_, closure) => {
552 +
            FormatText::CustomRequest(_, closure) => {
553 553
                let s = if let Some(closure) = closure {
554 554
                    FormatText::Str((closure.inner_fn)(req))
555 555
                } else {
Files Coverage
actix-files/src 0.00%
actix-http/src 37.76%
actix-multipart/src 0.00%
actix-web-actors/src 0.00%
awc/src 17.98%
src 87.09%
tests 100.00%
actix-web-codegen/src/route.rs 0.00%
Project Totals (128 files) 53.95%
1
ignore: # ignore codecoverage on following paths
2
  - "**/tests"
3
  - "test-server"
4
  - "**/benches"
5
  - "**/examples"
Sunburst
The inner-most circle is the entire project, moving away from the center are folders then, finally, a single file. The size and color of each slice is representing the number of statements and the coverage, respectively.
Icicle
The top section represents the entire project. Proceeding with folders and finally individual files. The size and color of each slice is representing the number of statements and the coverage, respectively.
Grid
Each block represents a single file in the project. The size and color of each block is represented by the number of statements and the coverage, respectively.
Loading