Format fixes

This commit is contained in:
Sylvester Hesp 2022-12-01 16:21:20 +01:00
parent 17523e06d7
commit 94a752d9db
2 changed files with 5 additions and 8 deletions

View File

@ -1159,10 +1159,7 @@ impl<'cx, 'tcx> Builder<'cx, 'tcx> {
Some(Token::Placeholder(_, span)) => {
self.tcx.sess.span_err(
span,
format!(
"expected a literal, not a dynamic value for a {:?}",
kind
),
format!("expected a literal, not a dynamic value for a {:?}", kind),
);
}
Some(Token::Typeof(_, span, _)) => {

View File

@ -249,10 +249,10 @@ impl<'tcx> BaseTypeMethods<'tcx> for CodegenCx<'tcx> {
fn vector_length(&self, ty: Self::Type) -> usize {
match self.lookup_type(ty) {
SpirvType::Vector { count, .. } => count as usize,
ty => self.tcx.sess.fatal(format!(
"vector_length called on non-vector type: {:?}",
ty
)),
ty => self
.tcx
.sess
.fatal(format!("vector_length called on non-vector type: {:?}", ty)),
}
}