From 68b4d51e1b244014faab5e09335c3b25524d5273 Mon Sep 17 00:00:00 2001 From: Richard Newman Date: Mon, 22 Jan 2018 13:11:09 -0800 Subject: [PATCH] Review comment: name all enum cases. --- tx/src/entities.rs | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/tx/src/entities.rs b/tx/src/entities.rs index 2d49f9cd..6ceffd51 100644 --- a/tx/src/entities.rs +++ b/tx/src/entities.rs @@ -30,14 +30,16 @@ impl TempId { pub fn into_external(self) -> Option { match self { TempId::External(s) => Some(s), - _ => None, + TempId::Tx | + TempId::Internal(_) => None, } } pub fn into_internal(self) -> Option { match self { TempId::Internal(x) => Some(x), - _ => None, + TempId::Tx | + TempId::External(_) => None, } } }