Rename NoneError to OptionIsNone
@@ -26,7 +26,7 @@ enum Error {
#[fail(display = "Option that should not be None was None")]
/// An Error type than can be used as the error type of using the Try operator on Option
/// types. In rust-core, this is an unstable feature (issue #42327)
- NoneError,
+ OptionIsNone,
}
/// Runs a worker task for the given client.
@@ -129,7 +129,7 @@ async fn _run_worker(
Action::JoinGame(res) => {
let info = NewClientInfo {
ip,
- username: res.username.ok_or(Error::NoneError)?,
+ username: res.username.ok_or(Error::OptionIsNone)?,
profile: res.props,
uuid: res.uuid,
sender: tx_server_to_worker.clone(),
