Skip to content

Commit

Permalink
Run cargo fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
DevinR528 committed Dec 8, 2023
1 parent eb41df7 commit 5350a09
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/fmt.rs
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,8 @@ fn fmt_value(value: &mut Value, config: &Config) {
match value {
Value::Array(arr) => {
if arr.to_string().len() > config.max_array_line_len {
let arr_has_trailing_newline = arr.trailing().as_str().map_or(false, |s| s.contains('\n'));
let arr_has_trailing_newline =
arr.trailing().as_str().map_or(false, |s| s.contains('\n'));
let len = arr.len();
for (i, val) in arr.iter_mut().enumerate() {
val.decor_mut().set_prefix(format!(
Expand Down

0 comments on commit 5350a09

Please sign in to comment.