Samuel Tardieu

Results 19 issues of Samuel Tardieu

This lint detects calls to `.is_empty()` on an entity initialized from a string literal and flag them as suspicious. To avoid triggering on macros called from generated code, it checks...

S-waiting-on-review

While working with an QEI encoder, I could not find a safe way of changing the polarity of one of the encoders inputs. I had to use ```rust unsafe {...

Hi. It looks from the backlog of issues, PR, and compilation issues that you might not have right now the resources to maintain criterion efficiently. Don't hesitate to help if...

Apply various style fixes found by Clippy: - Do not deconstruct an error to rebuild it right after - Remove useless `as usize` - Use char rather than &str as...

Changing the type from `c_int` to `c_short` will likely not break existing programs. It might introduce warnings about no-longer needed conversions to `c_short` though. Fixes #3627

S-waiting-on-review

In the page *Implementing Arc and Mutex* / *Arc* / *Layout*, the justification for using `Arc` is the following: > `pub struct Arc { ptr: *mut ArcInner, }` > >...

This causes an API change as using an `IndexMap` requires the type to implement `Hash`.

enhancement
API incompatible

### Summary When the entity being cloned borrows the former content of the target, the target cannot be replaced using `.clone_into()`. ### Reproducer I tried this code: ```rust use std::path::PathBuf;...

C-bug
I-suggestion-causes-error