Closed qm3ster closed 3 years ago
A bit more are on the way. Edit: ye, am done now. The rest require bikeshedding, maybe even conscious thought.
Stuff like
match tok.try_wait() { //Some(Err(Error::Paho(ERR_CODE))) => (), Some(Err(Error::PahoDescr(ERR_CODE, _))) => (), Some(Err(_)) => assert!(false), Some(Ok(_)) => assert!(false), None => assert!(false) }
I changed to
match tok.try_wait() { // Some(Err(Error::Paho(ERR_CODE))) => {} Some(Err(Error::PahoDescr(ERR_CODE, _))) => {} Some(Err(_)) | Some(Ok(_)) | None => unreachable!() }
because
assert_matches!(tok.try_wait().unwrap_err(), Error::PahoDescr(ERR_CODE, _));
or
assert_matches!(tok.try_wait(), Err(Error::PahoDescr(ERR_CODE, _)));
is not stable yet
I am likely done for this week... or this life? Peace out!
And remember - never squash marge, think of the children.
Merged into the develop branch. Thanks, again, @qm3ster !
develop
A bit more are on the way.Edit: ye, am done now. The rest require bikeshedding, maybe even conscious thought.Stuff like
I changed to
because
or
is not stable yet