Use more common error type\n\nMove to failure::Error after https://github.com/rust-lang-nursery/failure/pull/283 landed.

[?]
Dec 18, 2018, 7:05 PM
MOXHYSQ35EU5ENKNVE2N75HR2GQRF6QVL4K64CLOV2USASDE5R2QC

Dependencies

  • [2] EOHEZXX3 Move request processing to structure
  • [3] X6L47BHQ Use different structure for established xmpp connection
  • [4] FVVPKFTL Initial commit

Change contents

  • replacement in src/main.rs at line 45
    [2.266][2.266:303]()
    type Error = hyper::http::Error;
    [2.266]
    [2.303]
    type Error = Box<dyn std::error::Error + Sync + Send>;
  • replacement in src/main.rs at line 65
    [2.1157][2.1157:1241]()
    .body(Body::from(format!("Unknown destination: {}", err))),
    [2.1157]
    [2.1241]
    .body(Body::from(format!("Unknown destination: {}", err)))
    .map_err(|e| Box::new(e) as Box<dyn std::error::Error + Sync + Send>),
  • replacement in src/main.rs at line 87
    [2.2213][2.2213:2241]()
    }),
    [2.2213]
    [2.2241]
    })
    .map_err(|e| Box::new(e) as Box<dyn std::error::Error + Sync + Send>),
  • replacement in src/main.rs at line 102
    [2.2532][2.2532:2569]()
    type Error = hyper::http::Error;
    [2.2532]
    [2.2569]
    type Error = Box<dyn std::error::Error + Sync + Send>;
  • replacement in src/main.rs at line 104
    [2.2600][2.2600:2681]()
    type Future = tokio::prelude::future::FutureResult<ServiceCmd, Self::Error>;
    [2.2600]
    [2.2681]
    type Future = tokio::prelude::future::FutureResult<ServiceCmd, Self::MakeError>;