-
Notifications
You must be signed in to change notification settings - Fork 198
[AURON #1637] Enforce Clippy lint and Eliminate unwrap #1649
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
base: master
Are you sure you want to change the base?
Conversation
|
cc @richox |
7bee180 to
cd9dd8e
Compare
|
we can use |
b589ad1 to
fdfe215
Compare
fdfe215 to
efa87e3
Compare
|
@richox all unwraps are removed (including tests). Rust tests and Clippy passed. Please take a look, CI currently denies unwrap_used; once that's done, we'll switch to |
|
@richox CI Green, PTAL. |
|
@richox could you please take a look? |
native-engine/auron/src/alloc.rs
Outdated
|
|
||
| fn update(&self) { | ||
| let _lock = self.mutex.lock().unwrap(); | ||
| let _lock = self.mutex.lock().expect("lock"); |
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.
we replace this with parking_lot::Mutex, it has a unwrap-free lock API
|
@richox I’ve addressed all your comments and updated the PR. PTAL. |
|
@richox PTAL when you get a moment. Thank you! :) |
Which issue does this PR close?
Closes #1637 .
Rationale for this change
What changes are included in this PR?
Are there any user-facing changes?
How was this patch tested?