mirror of
https://github.com/roc-lang/roc.git
synced 2025-10-01 07:41:12 +00:00
fix clippy lint
This commit is contained in:
parent
9798a27606
commit
d21c858ccd
1 changed files with 1 additions and 1 deletions
|
@ -199,7 +199,7 @@ impl<T> RocList<T> {
|
|||
T: Clone,
|
||||
{
|
||||
// Avoid allocation with empty list.
|
||||
if slice.len() == 0 {
|
||||
if slice.is_empty() {
|
||||
Self::default()
|
||||
} else {
|
||||
Self::from_slice_with_capacity(slice, slice.len())
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue