-
Notifications
You must be signed in to change notification settings - Fork 1.9k
feat(strlen_on_c_strings): mention the specific type (CString or CStr)
#16391
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
Conversation
|
rustbot has assigned @samueltardieu. Use |
9c58080 to
f36c4f9
Compare
|
Nit: should we use "use ... instead"(or just "use") instead of "try"? |
For simplicity's sake, this also changes the lint to always suggest `to_bytes`, as it is somewhat hard to find out whether a type could dereference to `CString` (which is what `as_bytes` would require)
f36c4f9 to
49c8614
Compare
|
Given that this is an autofix.. yeah probably. Repeating the whole |
|
Yeah that was a weird brain hiccup – I did realize that this would cause a conflict, and did want to avoid it... but just didn't. Apologies to you and @Tigls, I'll do better next time |
The vague "or" was a bit silly
changelog: [
strlen_on_c_strings]: mention the specific type (CStringorCStr)changelog: [
strlen_on_c_strings]: lint all types that dereference toCStr