Fixed body reading

[?]
Dec 18, 2018, 8:38 PM
ZJ4QKTJROEJK2RSY4JS7EDJMUAVXBYVXZPFIXUC5BZGVPLP5XMJAC

Dependencies

  • [2] UCY2DO3D Try to read request body
  • [3] EOHEZXX3 Move request processing to structure
  • [4] MOXHYSQ3 Use more common error type\n\nMove to failure::Error after https://github.com/rust-lang-nursery/failure/pull/283 landed.
  • [*] FVVPKFTL Initial commit

Change contents

  • replacement in src/main.rs at line 46
    [2.114][2.114:219]()
    type Future = Box<dyn Future<Item = Response<Self::ResBody>, Error = Self::Error> + Send + 'static>;
    [2.114]
    [3.398]
    type Future =
    Box<dyn Future<Item = Response<Self::ResBody>, Error = Self::Error> + Send + 'static>;
  • replacement in src/main.rs at line 67
    [3.143][2.220:325]()
    .map_err(|e| Box::new(e) as Box<dyn std::error::Error + Sync + Send + 'static>),
    [3.143]
    [2.325]
    .map_err(|e| {
    Box::new(e) as Box<dyn std::error::Error + Sync + Send + 'static>
    }),
  • edit in src/main.rs at line 74
    [2.453]
    [3.1384]
    let cmd_send = self.cmd_send.clone();
  • replacement in src/main.rs at line 76
    [3.1410][2.454:653]()
    /*req.into_body()
    .map_err(|e| Box::new(e) as Box<dyn std::error::Error + Sync + Send + 'static>)
    .fold(String::new(), |acc, ch| {
    [3.1410]
    [2.653]
    req.into_body()
    .map_err(|e| {
    Box::new(e) as Box<dyn std::error::Error + Sync + Send + 'static>
    })
    .fold(String::new(), |mut acc, ch| {
  • replacement in src/main.rs at line 86
    [3.266][2.834:928]()
    .and_then(|msg: String| {*/
    self.cmd_send
    [3.266]
    [2.928]
    .and_then(move |_msg: String| {
    cmd_send
  • replacement in src/main.rs at line 107
    [2.2045][2.2045:2147]()
    Box::new(e) as Box<dyn std::error::Error + Sync + Send + 'static>
    [2.2045]
    [2.2147]
    Box::new(e)
    as Box<dyn std::error::Error + Sync + Send + 'static>
  • replacement in src/main.rs at line 110
    [2.2182][2.2182:2212]()
    // }),
    [2.2182]
    [2.2212]
    }),