echoes 0.10.2

Find duplicated Rust doctests, functions and contexts
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
use echoes::{Kind, Report};

/// The sorted ids of the function groups of one report.
pub(super) fn function_ids(report: &Report) -> Vec<&str> {
    let mut ids: Vec<&str> = report
        .groups
        .iter()
        .filter(|group| group.kind == Kind::Function)
        .map(|group| group.id.as_str())
        .collect();
    ids.sort_unstable();
    ids
}