1
0
mirror of https://github.com/fafhrd91/actix-net synced 2025-08-19 23:35:38 +02:00

change generics order for Transform trait

This commit is contained in:
Nikolay Kim
2019-03-05 09:49:08 -08:00
parent aa2967c653
commit 1153715149
9 changed files with 37 additions and 40 deletions

View File

@@ -277,16 +277,13 @@ where
#[cfg(test)]
mod tests {
use futures::Future;
use super::*;
use crate::{IntoService, NewService, Service, ServiceExt};
use crate::{IntoService, Service, ServiceExt};
#[test]
fn test_fn_service() {
let mut rt = actix_rt::Runtime::new().unwrap();
let srv = (|t: &str| -> Result<usize, ()> { Ok(1) }).into_service();
let srv = (|_t: &str| -> Result<usize, ()> { Ok(1) }).into_service();
let mut srv = srv.and_then(|test: usize| Ok(test));
let s = "HELLO".to_owned();