提交 17752926 编写于 作者: J Jared Roesch

Address code review nits

上级 6948a2df
......@@ -129,10 +129,10 @@ fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
try!(f.write(", ".as_bytes()));
}
match pred {
&clean::WherePredicate::BoundPredicate {ref ty, ref bounds } => {
&clean::WherePredicate::BoundPredicate { ref ty, ref bounds } => {
let bounds = bounds.as_slice();
try!(write!(f, "{}: {}", ty, TyParamBounds(bounds)));
},
}
&clean::WherePredicate::RegionPredicate { ref lifetime,
ref bounds } => {
try!(write!(f, "{}: ", lifetime));
......@@ -143,7 +143,7 @@ fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
try!(write!(f, "{}", lifetime));
}
},
}
&clean::WherePredicate::EqPredicate => {
unimplemented!()
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册