diff options
| author | Jason Newcomb <jsnewcomb@pm.me> | 2021-03-26 16:27:19 -0400 |
|---|---|---|
| committer | Jason Newcomb <jsnewcomb@pm.me> | 2021-03-27 09:04:44 -0400 |
| commit | 12985afbcad28eb67c0b5c5903ff21b6fa922b13 (patch) | |
| tree | f78fc3aa7f8934da381552584054a55114fc9ded /src/test/codegen/src-hash-algorithm | |
| parent | f41d68faa6ecaf8756ee72d329e4ba50aaac525d (diff) | |
| download | rust-12985afbcad28eb67c0b5c5903ff21b6fa922b13.tar.gz rust-12985afbcad28eb67c0b5c5903ff21b6fa922b13.zip | |
`len_without_is_empty` improvements
Check the return type of `len`. Only integral types, or an `Option` or `Result` wrapping one. Ensure the return type of `is_empty` matches. e.g. `Option<usize>` -> `Option<bool>`
Diffstat (limited to 'src/test/codegen/src-hash-algorithm')
0 files changed, 0 insertions, 0 deletions
