Skip to content

Commit 43f82af

Browse files
committed
Add imports to doctests
1 parent 0e491a0 commit 43f82af

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

clippy_lints/src/zero_sized_map_values.rs

+2
Original file line numberDiff line numberDiff line change
@@ -22,12 +22,14 @@ declare_clippy_lint! {
2222
/// **Example:**
2323
///
2424
/// ```rust
25+
/// # use std::collections::HashMap;
2526
/// fn unique_words(text: &str) -> HashMap<&str, ()> {
2627
/// todo!();
2728
/// }
2829
/// ```
2930
/// Use instead:
3031
/// ```rust
32+
/// # use std::collections::HashMap;
3133
/// fn unique_words(text: &str) -> HashSet<&str> {
3234
/// todo!();
3335
/// }

0 commit comments

Comments
 (0)