1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
use super::*;

impl Debug for DuplicateKind {
    fn fmt(&self, f: &mut Formatter<'_>) -> std::fmt::Result {
        match self {
            Self::Type => f.write_str("Type"),
            Self::Function => f.write_str("Function"),
            Self::Variable => f.write_str("Variable"),
            Self::Key => f.write_str("Key"),
        }
    }
}

impl Display for DuplicateKind {
    fn fmt(&self, f: &mut Formatter<'_>) -> std::fmt::Result {
        match self {
            Self::Type => f.write_str("type"),
            Self::Function => f.write_str("function"),
            Self::Variable => f.write_str("variable"),
            Self::Key => f.write_str("key"),
        }
    }
}