improve style
This commit is contained in:
parent
0b7210d597
commit
f4007511ea
7 changed files with 37 additions and 108 deletions
|
|
@ -147,7 +147,7 @@ impl Stream for Client {
|
|||
Ok(Async::NotReady) => (),
|
||||
Ok(Async::Ready(())) => (),
|
||||
Err(e) =>
|
||||
return Err(e.into()),
|
||||
return Err(e)?,
|
||||
};
|
||||
|
||||
// Poll stream
|
||||
|
|
@ -167,7 +167,7 @@ impl Stream for Client {
|
|||
Ok(Async::NotReady)
|
||||
},
|
||||
Err(e) =>
|
||||
Err(e.into()),
|
||||
Err(e)?,
|
||||
}
|
||||
},
|
||||
}
|
||||
|
|
@ -190,7 +190,7 @@ impl Sink for Client {
|
|||
Ok(AsyncSink::Ready)
|
||||
},
|
||||
Err(e) =>
|
||||
Err(e.into()),
|
||||
Err(e)?,
|
||||
},
|
||||
_ =>
|
||||
Ok(AsyncSink::NotReady(item)),
|
||||
|
|
|
|||
Loading…
Reference in a new issue