Update | Add Mango Proxy sponsor #38
python.yml
on: pull_request
formatting-checks
13s
Matrix: pytest
Annotations
2 warnings
|
called `Iterator::last` on a `DoubleEndedIterator`; this will needlessly iterate the entire iterator:
taisun/comments.rs#L223
warning: called `Iterator::last` on a `DoubleEndedIterator`; this will needlessly iterate the entire iterator
--> taisun/comments.rs:223:26
|
223 | let parent_id = &new_comment
| __________________________^
224 | | .parent_id
225 | | .split('_')
226 | | .last()
| |___________________^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/rust-1.95.0/index.html#double_ended_iterator_last
help: try
|
226 - .last()
226 + .next_back()
|
|
|
called `Iterator::last` on a `DoubleEndedIterator`; this will needlessly iterate the entire iterator:
taisun/comments.rs#L193
warning: called `Iterator::last` on a `DoubleEndedIterator`; this will needlessly iterate the entire iterator
--> taisun/comments.rs:193:26
|
193 | let target_id = &new_comment
| __________________________^
194 | | .parent_id
195 | | .split('_')
196 | | .last()
| |___________________^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/rust-1.95.0/index.html#double_ended_iterator_last
= note: `#[warn(clippy::double_ended_iterator_last)]` on by default
help: try
|
196 - .last()
196 + .next_back()
|
|