-
-
Notifications
You must be signed in to change notification settings - Fork 88
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
refactor: eliminating indexing_slicing #6214
Conversation
is_file_in_use
There is a change in behavior for the case when name is the same as the suffix (`name_len` == `namespc_len`), but normally `files_in_use` should not contain empty filenames.
8b8e175
to
37c2348
Compare
1d0b3c0
to
52e0526
Compare
clippy::indexing_slicing is already allowed in test builds.
52e0526
to
a264cbf
Compare
When I remove this: deltachat-core-rust/src/securejoin.rs Line 282 in 399716a
Clippy still does not catch this slicing: deltachat-core-rust/src/securejoin.rs Line 351 in 399716a
This should be reduced to a minimal case and reported to https://github.com/rust-lang/rust-clippy EDIT: reported here: rust-lang/rust-clippy#13703 EDIT2: this is handled by |
5765b0c
to
0cdd9b4
Compare
Only |
It is impossible to allow this in the new code now.
76d5f95
to
c5c5e14
Compare
Removing all indexing_slicing from the core, so next time we get something like #6221 we can immediately blame dependencies. See commit messages for details.
clippy::string_slice is a separate issue #6224