From f9a075b9221b6edeb25d0d560477e3ec27be4076 Mon Sep 17 00:00:00 2001 From: Smitty Date: Sat, 29 May 2021 11:38:22 -0400 Subject: [PATCH] simplify Fid/Sid stringification --- src/ids.rs | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/src/ids.rs b/src/ids.rs index c214822..8eb175b 100755 --- a/src/ids.rs +++ b/src/ids.rs @@ -75,9 +75,7 @@ impl ToString for Fid { /// Display the ID as it would be in a URI. #[must_use] fn to_string(&self) -> String { - match self { - Fid(Lid(lid), fid) => format!("L{}-F{}", lid, fid), - } + format!("{}-F{}", self.0, self.1) } } @@ -85,9 +83,7 @@ impl ToString for Sid { /// Display the ID as it would be in a URI. #[must_use] fn to_string(&self) -> String { - match self { - Sid(Lid(lid), sid) => format!("L{}-S{}", lid, sid), - } + format!("{}-S{}", self.0, self.1) } }