---
source: crates/ruff_linter/src/rules/refurb/mod.rs
---
FURB187 [*] Use of assignment of `reversed` on list `l`
 --> FURB187.py:6:5
  |
4 | def a():
5 |     l = []
6 |     l = reversed(l)
  |     ^^^^^^^^^^^^^^^
  |
help: Replace with `l.reverse()`
  |
5 |     l = []
  -     l = reversed(l)
6 +     l.reverse()
7 |
  |
note: This is an unsafe fix and may change runtime behavior

FURB187 [*] Use of assignment of `reversed` on list `l`
  --> FURB187.py:11:5
   |
 9 | def b():
10 |     l = []
11 |     l = list(reversed(l))
   |     ^^^^^^^^^^^^^^^^^^^^^
   |
help: Replace with `l.reverse()`
   |
10 |     l = []
   -     l = list(reversed(l))
11 +     l.reverse()
12 |
   |
note: This is an unsafe fix and may change runtime behavior

FURB187 [*] Use of assignment of `reversed` on list `l`
  --> FURB187.py:16:5
   |
14 | def c():
15 |     l = []
16 |     l = l[::-1]
   |     ^^^^^^^^^^^
   |
help: Replace with `l.reverse()`
   |
15 |     l = []
   -     l = l[::-1]
16 +     l.reverse()
17 |
   |
note: This is an unsafe fix and may change runtime behavior
