Impl Display for TimeTrackingTag

This commit is contained in:
Matthias Beyer 2017-07-23 10:35:04 +02:00
parent b4ff528a2c
commit 03e70721e6

View file

@ -17,6 +17,9 @@
// Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
//
use std::fmt::Display;
use std::fmt::Error as FmtError;
use std::fmt::Formatter;
use std::path::PathBuf;
use libimagstore::store::Result as StoreResult;
@ -34,6 +37,12 @@ impl TimeTrackingTag {
}
}
impl Display for TimeTrackingTag {
fn fmt(&self, f: &mut Formatter) -> Result<(), FmtError> {
self.0.fmt(f)
}
}
impl Into<String> for TimeTrackingTag {
fn into(self) -> String {
self.0