Skip to content

Commit

Permalink
rustfmt
Browse files Browse the repository at this point in the history
  • Loading branch information
jqnatividad committed Nov 22, 2023
1 parent 444d91b commit cd16711
Showing 1 changed file with 7 additions and 10 deletions.
17 changes: 7 additions & 10 deletions src/cmd/luau.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1278,16 +1278,13 @@ fn map_computedvalue(
let mut nbuffer = ryu::Buffer::new();
table.for_each::<String, Value>(|_k, v| {
match v {
Value::Integer(intval) =>
record.push_field(ibuffer.format(intval)),
Value::String(strval) =>
record.push_field(&strval.to_string_lossy()),
Value::Number(number) =>
record.push_field(nbuffer.format(number)),
Value::Boolean(boolean) =>
record.push_field(if boolean { "true" } else { "false" }),
Value::Nil =>
record.push_field(""),
Value::Integer(intval) => record.push_field(ibuffer.format(intval)),
Value::String(strval) => record.push_field(&strval.to_string_lossy()),
Value::Number(number) => record.push_field(nbuffer.format(number)),
Value::Boolean(boolean) => {
record.push_field(if boolean { "true" } else { "false" })
},
Value::Nil => record.push_field(""),
_ => unreachable!("unsupported value type"),
}
columns_inserted += 1;
Expand Down

0 comments on commit cd16711

Please sign in to comment.