Code formatting/cleanup

This commit is contained in:
Philipp Hansch 2019-04-10 07:50:34 +02:00
parent 0eb7596fdc
commit 1fd2451b90
No known key found for this signature in database
GPG Key ID: 82AA61CAA11397E6

View File

@ -538,13 +538,10 @@ impl LiteralRepresentation {
return
}
let hex = format!("{:#X}", val);
let digit_info = DigitInfo::new(&hex[..], false);
let digit_info = DigitInfo::new(&hex, false);
let _ = Self::do_lint(digit_info.digits).map_err(|warning_type| {
warning_type.display(&digit_info.grouping_hint(), cx, lit.span)
});
}
else {
return
};
}
}