Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error handling, clippy #7032

Open
wants to merge 13 commits into
base: master
Choose a base branch
from
Open

Conversation

sharma-shray
Copy link
Contributor

Error Handling, several fix clippy warnings

@github-actions github-actions bot added R-loom-sync Run loom sync tests on this PR R-loom-time-driver Run loom time driver tests on this PR labels Dec 12, 2024
@@ -500,7 +500,7 @@ impl TimerEntry {
*self.inner.get() = Some(TimerShared::new(shard_id));
}
}
return inner.as_ref().unwrap();
inner.as_ref().unwrap()
Copy link
Contributor

Choose a reason for hiding this comment

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

The indentation here seems to be wrong.

Comment on lines -235 to +237
*self.as_mut().project().seek_pos = None;
if res.is_ok() {
*self.as_mut().project().seek_pos = None;
}
Copy link
Contributor

Choose a reason for hiding this comment

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

Why is this being changed? Is there a use-case where this behaves incorrectly? Can you add that use-case as a test?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
R-loom-sync Run loom sync tests on this PR R-loom-time-driver Run loom time driver tests on this PR
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants