clippy
This commit is contained in:
@@ -80,9 +80,7 @@ impl Registerable for BoardRef {
|
||||
engine.register_fn("tagged", move |board_ref: &mut BoardRef, tag: ImmutableString| -> rhai::Array {
|
||||
let board = board_ref.borrow();
|
||||
board
|
||||
.objects
|
||||
.iter()
|
||||
.filter_map(|(_id, def)| {
|
||||
.objects.values().filter_map(|def| {
|
||||
if def.tags.contains(tag.as_str()) {
|
||||
Some(Dynamic::from(ObjectInfo::from_def(def, board_ref.clone())))
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user