Clean up rustfmt options, and format

This commit is contained in:
Jeremy Soller
2024-01-08 14:10:30 -07:00
parent 1258d296d1
commit f4511a487f
2 changed files with 19 additions and 20 deletions
+16 -19
View File
@@ -1,24 +1,21 @@
max_width = 100
hard_tabs = false
tab_spaces = 4
newline_style = "Unix"
indent_style = "Block"
format_strings = false
blank_lines_lower_bound = 0
blank_lines_upper_bound = 1
brace_style = "SameLineWhere"
disable_all_formatting = false
edition = "2018"
empty_item_single_line = true
fn_single_line = false
where_single_line = false
force_explicit_abi = true
format_strings = false
hard_tabs = false
hide_parse_errors = false
imports_granularity = "Crate"
imports_indent = "Block"
imports_layout = "Mixed"
fn_args_density = "Tall"
brace_style = "SameLineWhere"
trailing_comma = "Vertical"
blank_lines_upper_bound = 1
blank_lines_lower_bound = 0
force_explicit_abi = true
disable_all_formatting = false
indent_style = "Block"
max_width = 100
newline_style = "Unix"
skip_children = false
hide_parse_errors = false
report_todo = "Never"
report_fixme = "Never"
edition = "2018"
merge_imports = true
tab_spaces = 4
trailing_comma = "Vertical"
where_single_line = false
+3 -1
View File
@@ -294,7 +294,9 @@ struct Guard<'a> {
impl<'a> Drop for Guard<'a> {
fn drop(&mut self) {
unsafe { self.buf.set_len(self.len); }
unsafe {
self.buf.set_len(self.len);
}
}
}