about summary refs log tree commit diff
path: root/src/lib/ExtFmt.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/ExtFmt.rs')
-rw-r--r--src/lib/ExtFmt.rs12
1 files changed, 12 insertions, 0 deletions
diff --git a/src/lib/ExtFmt.rs b/src/lib/ExtFmt.rs
index 138f389499f..7ef9160594d 100644
--- a/src/lib/ExtFmt.rs
+++ b/src/lib/ExtFmt.rs
@@ -271,6 +271,18 @@ mod RT {
     fn uint_to_str(uint u) -> str {
         ret _uint.to_str(u, 10u);
     }
+
+    fn bool_to_str(bool b) -> str {
+        if (b) {
+            ret "true";
+        } else {
+            ret "false";
+        }
+    }
+
+    fn char_to_str(char c) -> str {
+        ret _str.from_char(c);
+    }
 }
 
 // Local Variables: