Skip to content

Commit

Permalink
Typo
Browse files Browse the repository at this point in the history
  • Loading branch information
fenhl committed Jan 6, 2024
1 parent 320c756 commit 1455622
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions crate/wurstminebot/src/log.rs
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,7 @@ fn format_to_regex(format: &str) -> Result<Regex, regex::Error> {

impl RegularLine {
async fn parse(state: Arc<RwLock<FollowerState>>, s: &str) -> Result<Self, Error> {
Ok(if let Some((_, version)) = regex_captures!("^Starting minecraft server version (.+)%", s) {
Ok(if let Some((_, version)) = regex_captures!("^Starting minecraft server version (.+)$", s) {
let mut state = state.write().await;
if state.minecraft_version.as_ref().map_or(true, |prev_version| prev_version != version) {
state.minecraft_version = Some(version.to_owned());
Expand Down Expand Up @@ -375,10 +375,9 @@ pub async fn handle(ctx_fut: RwFuture<Context>) -> Result<Never, Error> { //TODO
}
match try_join_all(handles).await?.pop() {
Some(Ok(never)) => match never {},
Some(Err(e)) => return Err(e),
None => {}
Some(Err(e)) => Err(e),
None => Err(Error::NoWorlds),
}
Err(Error::NoWorlds)
}

async fn handle_world(http_client: reqwest::Client, ctx_fut: RwFuture<Context>, world: World) -> Result<Never, Error> {
Expand Down

0 comments on commit 1455622

Please sign in to comment.