Collect the labels from a slice of hints.
(hints: &[&InlayHint])
| 45 | |
| 46 | /// Collect the labels from a slice of hints. |
| 47 | fn labels(hints: &[&InlayHint]) -> Vec<String> { |
| 48 | hints.iter().map(|h| hint_label(h)).collect() |
| 49 | } |
| 50 | |
| 51 | /// Find all hints at a specific line. |
| 52 | fn hints_at_line(hints: &[InlayHint], line: u32) -> Vec<&InlayHint> { |
no test coverage detected