Skip to content

Commit

Permalink
Rustfmt.
Browse files Browse the repository at this point in the history
  • Loading branch information
SimonTeixidor committed Apr 23, 2017
1 parent d14038c commit 7d3a2de
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -119,9 +119,10 @@ impl Future for MainLoopState {
return Ok(Async::Ready(()));
}
}
} else if let Some(Async::Ready(_)) = self.spirc_task
.as_mut()
.map(|ref mut st| st.poll().unwrap()) {
} else if let Some(Async::Ready(_)) =
self.spirc_task
.as_mut()
.map(|ref mut st| st.poll().unwrap()) {
return Ok(Async::Ready(()));
} else {
return Ok(Async::NotReady);
Expand Down Expand Up @@ -212,9 +213,9 @@ fn main() {
let device_id = session_config.device_id.clone();
let discovery_stream = discovery(&handle, session_config.name.clone(), device_id).unwrap();
let connection = if let Some(credentials) =
get_credentials(config.username.or(matches.opt_str("username")),
config.password.or(matches.opt_str("password")),
cache.as_ref().and_then(Cache::credentials)) {
get_credentials(config.username.or(matches.opt_str("username")),
config.password.or(matches.opt_str("password")),
cache.as_ref().and_then(Cache::credentials)) {
Session::connect(session_config.clone(),
credentials,
cache.clone(),
Expand Down

0 comments on commit 7d3a2de

Please sign in to comment.