Simplify Serialize implementation for TagKind.
This commit is contained in:
parent
feac368a30
commit
38a9f33d9e
1 changed files with 6 additions and 5 deletions
|
|
@ -61,12 +61,13 @@ impl Serialize for TagKind {
|
|||
S: Serializer,
|
||||
{
|
||||
match self {
|
||||
TagKind::Call => "Call".serialize(s),
|
||||
TagKind::Module => "Module".serialize(s),
|
||||
TagKind::Class => "Class".serialize(s),
|
||||
TagKind::Method => "Method".serialize(s),
|
||||
TagKind::Function => "Function".serialize(s),
|
||||
TagKind::Call => "Call",
|
||||
TagKind::Module => "Module",
|
||||
TagKind::Class => "Class",
|
||||
TagKind::Method => "Method",
|
||||
TagKind::Function => "Function",
|
||||
}
|
||||
.serialize(s)
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue