implement is_empty() and use it according to Clippy's prophecy.#98
implement is_empty() and use it according to Clippy's prophecy.#98igalic wants to merge 1 commit intoriker-rs:masterfrom igalic:fix/clippy-len-vs-is_empty
Conversation
|
This now leads to: so unless we at least create tests and/or rustdoc comments, it can be removed? |
|
@igalic I think if we remove
It essentially comes down to updating the API so that user code has access to the number of children the current actor running has, via context. So, we could remove What do you think? |
|
Great portions of this comment would make good extensions to the current documentation I'll to to do as you say, and update the API to be clearer in its intentions. |
Clippy complains that we have a
.len()method, but no corresponding.is_empty()method.Once implemented, it then recommends using
!is_empty()in place oflen() > 0.