clippy
This commit is contained in:
@@ -430,7 +430,7 @@ fn register_read_api(engine: &mut Engine, board: &BoardRef, board_queue: &BoardQ
|
||||
let b = board.clone();
|
||||
engine.register_fn("has_tag", move |ctx: NativeCallContext, tag: ImmutableString| {
|
||||
let src = source_of(&ctx);
|
||||
b.borrow().objects.get(&src).map_or(false, |o| o.tags.contains(tag.as_str()))
|
||||
b.borrow().objects.get(&src).is_some_and(|o| o.tags.contains(tag.as_str()))
|
||||
});
|
||||
|
||||
// get_tags() -> Array of strings: the calling object's current tag set.
|
||||
|
||||
Reference in New Issue
Block a user