mirror of
https://github.com/rojo-rbx/rojo.git
synced 2026-10-23 05:51:39 +00:00
Fix clippy lint warnings (#1004)
This commit is contained in:
parent
f33d1f1cc4
commit
55a207a275
18 changed files with 69 additions and 76 deletions
|
|
@ -148,7 +148,7 @@ impl RojoTree {
|
|||
// We need to uphold the invariant that each ID can only map
|
||||
// to one referent.
|
||||
if let Some(new) = &metadata.specified_id {
|
||||
if self.specified_id_to_refs.get(new).len() > 0 {
|
||||
if !self.specified_id_to_refs.get(new).is_empty() {
|
||||
log::error!("Duplicate user-specified referent '{new}'");
|
||||
}
|
||||
|
||||
|
|
@ -206,7 +206,7 @@ impl RojoTree {
|
|||
}
|
||||
|
||||
if let Some(specified_id) = &metadata.specified_id {
|
||||
if self.specified_id_to_refs.get(specified_id).len() > 0 {
|
||||
if !self.specified_id_to_refs.get(specified_id).is_empty() {
|
||||
log::error!("Duplicate user-specified referent '{specified_id}'");
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue