From 1fc1c73b4a9578bb0bc4803027f801499d316dd9 Mon Sep 17 00:00:00 2001 From: Matthias Beyer Date: Mon, 21 Dec 2015 19:37:14 +0100 Subject: [PATCH] impl Into for FileIDType --- src/storage/file/id_type.rs | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/src/storage/file/id_type.rs b/src/storage/file/id_type.rs index 977f312d..7523fc40 100644 --- a/src/storage/file/id_type.rs +++ b/src/storage/file/id_type.rs @@ -18,3 +18,12 @@ impl FileIDType { } +impl Into for FileIDType { + + fn into(self) -> String { + match self { + FileIDType::UUID => String::from("UUID"), + } + } +} +