-
-
Notifications
You must be signed in to change notification settings - Fork 2.5k
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
base: master
Are you sure you want to change the base?
Error handling, clippy #7032
Conversation
This ensures that seek_pos is only reset if the seek operation completed successfully.
@@ -500,7 +500,7 @@ impl TimerEntry { | |||
*self.inner.get() = Some(TimerShared::new(shard_id)); | |||
} | |||
} | |||
return inner.as_ref().unwrap(); | |||
inner.as_ref().unwrap() |
There was a problem hiding this comment.
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.
*self.as_mut().project().seek_pos = None; | ||
if res.is_ok() { | ||
*self.as_mut().project().seek_pos = None; | ||
} |
There was a problem hiding this comment.
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?
Error Handling, several fix clippy warnings