diff rust/src/types.rs @ 623:03167105f6de rust

ignore missing local.conf
author Matt Johnston <matt@ucc.asn.au>
date Sun, 16 Apr 2017 22:50:20 +0800
parents 8136a6b99866
children efcbe0d3afd6
line wrap: on
line diff
--- a/rust/src/types.rs	Sun Apr 16 22:50:05 2017 +0800
+++ b/rust/src/types.rs	Sun Apr 16 22:50:20 2017 +0800
@@ -113,6 +113,10 @@
         TemplogError::new_kind(msg, TemplogErrorKind::SerdeJson(e))
     }
 
+    pub fn kind(&self) -> &TemplogErrorKind {
+        return &self.kind;
+    }
+
     fn new_kind(msg: &str, k: TemplogErrorKind) -> Self {
         let mut s = TemplogError { 
             msg: msg.to_string(),