fmt: replace Conv record with struct Conv
This commit is contained in:
parent
53f41f07ce
commit
1a2a8975bc
1 changed files with 3 additions and 3 deletions
|
@ -130,12 +130,12 @@ pub mod ct {
|
||||||
}
|
}
|
||||||
|
|
||||||
// A formatted conversion from an expression to a string
|
// A formatted conversion from an expression to a string
|
||||||
pub type Conv =
|
pub struct Conv
|
||||||
{param: Option<uint>,
|
{param: Option<uint>,
|
||||||
flags: ~[Flag],
|
flags: ~[Flag],
|
||||||
width: Count,
|
width: Count,
|
||||||
precision: Count,
|
precision: Count,
|
||||||
ty: Ty};
|
ty: Ty}
|
||||||
|
|
||||||
|
|
||||||
// A fragment of the output sequence
|
// A fragment of the output sequence
|
||||||
|
@ -208,7 +208,7 @@ pub mod ct {
|
||||||
let prec = parse_precision(s, width.next, lim);
|
let prec = parse_precision(s, width.next, lim);
|
||||||
let ty = parse_type(s, prec.next, lim, err);
|
let ty = parse_type(s, prec.next, lim, err);
|
||||||
return {piece:
|
return {piece:
|
||||||
PieceConv({param: parm.param,
|
PieceConv(Conv {param: parm.param,
|
||||||
flags: copy flags.flags,
|
flags: copy flags.flags,
|
||||||
width: width.count,
|
width: width.count,
|
||||||
precision: prec.count,
|
precision: prec.count,
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue