Review comment: name all enum cases.

This commit is contained in:
Richard Newman 2018-01-22 13:11:09 -08:00
parent 87dd6a711e
commit 68b4d51e1b

View file

@ -30,14 +30,16 @@ impl TempId {
pub fn into_external(self) -> Option<String> {
match self {
TempId::External(s) => Some(s),
_ => None,
TempId::Tx |
TempId::Internal(_) => None,
}
}
pub fn into_internal(self) -> Option<i64> {
match self {
TempId::Internal(x) => Some(x),
_ => None,
TempId::Tx |
TempId::External(_) => None,
}
}
}