cargo fmt

This commit is contained in:
Chelsea Troy 2021-12-01 18:38:51 -06:00
parent 0e5f82526a
commit 2eefe9ff6d
2 changed files with 22 additions and 23 deletions

View file

@ -351,30 +351,30 @@ fn u8_hex_int_alias() {
f f
"# "#
), ),
0xA, 0xA,
u8 u8
);
}
#[test]
fn character_literal() {
assert_evals_to!(
indoc!(
r#"
x = 'A'
x
"#
),
65,
u32
); );
} }
#[test] #[test]
fn dec_float_alias() { fn character_literal() {
assert_evals_to!( assert_evals_to!(
indoc!(
r#"
x = 'A'
x
"#
),
65,
u32
);
}
#[test]
fn dec_float_alias() {
assert_evals_to!(
indoc!( indoc!(
r#" r#"
x : Dec x : Dec

View file

@ -1082,9 +1082,8 @@ fn format_category<'b>(
alloc.text(" which was of type:"), alloc.text(" which was of type:"),
), ),
Character => ( Character => (
alloc.concat(vec![this_is, alloc.text(" a character") alloc.concat(vec![this_is, alloc.text(" a character")]),
]), alloc.text(" of type:"),
alloc.text(" of type:")
), ),
Lambda => ( Lambda => (
alloc.concat(vec![this_is, alloc.text(" an anonymous function")]), alloc.concat(vec![this_is, alloc.text(" an anonymous function")]),