Skip to content

Conversation

@holoujak
Copy link
Owner

No description provided.

@holoujak holoujak requested a review from trnila October 16, 2025 07:35
let racer = self.racers.iter_mut().find(|r| predicate(r)).ok_or(())?;
racer.finish = Some(time);

if racer.finish.is_some() && time.is_some() {
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

will it allow changing time manually?

Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

no

racer.finish = time;
racer.time = calculate_time(racer.start, racer.finish);

if racer.finish.is_none() {
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

should be written to the log as well

Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It is... Execution will continue to log_finish function.

@trnila trnila merged commit c537a15 into master Oct 16, 2025
2 checks passed
@trnila trnila deleted the remove-finish-time branch October 16, 2025 19:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants