Update | Sponsor section in README and funding source
#34
python.yml
on: pull_request
formatting-checks
14s
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: try: `next_back()`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/rust-1.91.0/index.html#double_ended_iterator_last
|
|
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: try: `next_back()`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/rust-1.91.0/index.html#double_ended_iterator_last
= note: `#[warn(clippy::double_ended_iterator_last)]` on by default
|