]> git.lizzy.rs Git - rust.git/commitdiff
fmt: replace Conv record with struct Conv
authorAndrew Paseltiner <apaseltiner@gmail.com>
Mon, 7 Jan 2013 19:17:48 +0000 (14:17 -0500)
committerAndrew Paseltiner <apaseltiner@gmail.com>
Mon, 7 Jan 2013 22:22:01 +0000 (17:22 -0500)
src/libcore/extfmt.rs

index 5d7e0306b064bc2380e4e553da144cac7d4656eb..5033b9ae40581e702780c84f8101a7dbe7543293 100644 (file)
@@ -130,12 +130,12 @@ pub enum Count {
     }
 
     // A formatted conversion from an expression to a string
-    pub type Conv =
+    pub struct Conv
         {param: Option<uint>,
          flags: ~[Flag],
          width: Count,
          precision: Count,
-         ty: Ty};
+         ty: Ty}
 
 
     // A fragment of the output sequence
@@ -208,7 +208,7 @@ pub fn parse_conversion(s: &str, i: uint, lim: uint,
         let prec = parse_precision(s, width.next, lim);
         let ty = parse_type(s, prec.next, lim, err);
         return {piece:
-                 PieceConv({param: parm.param,
+                 PieceConv(Conv {param: parm.param,
                              flags: copy flags.flags,
                              width: width.count,
                              precision: prec.count,