mirror of
https://github.com/Zenithsiz/dcb.git
synced 2026-02-04 00:21:57 +00:00
Now wrapping long comments.
This commit is contained in:
parent
53963b5a7e
commit
f76179929f
@ -1,6 +1,7 @@
|
||||
//! Errors
|
||||
|
||||
/// Error for [`Alphabet::validate`](super::Alphabet::validate)'s impl of [`AlphabetA`](super::AlphabetA) and [`AlphabetD`](super::AlphabetD)
|
||||
/// Error for [`Alphabet::validate`](super::Alphabet::validate)'s impl of [`AlphabetA`](super::AlphabetA) and
|
||||
/// [`AlphabetD`](super::AlphabetD)
|
||||
#[derive(Debug, thiserror::Error)]
|
||||
#[error("Invalid character '{byte:#x}' at index {pos}")]
|
||||
pub struct InvalidCharError {
|
||||
@ -11,7 +12,8 @@ pub struct InvalidCharError {
|
||||
pub pos: usize,
|
||||
}
|
||||
|
||||
/// Error for [`Alphabet::validate`](super::Alphabet::validate)'s impl of [`AlphabetA`](super::AlphabetA) and [`AlphabetD`](super::AlphabetD)
|
||||
/// Error for [`Alphabet::validate`](super::Alphabet::validate)'s impl of [`AlphabetA`](super::AlphabetA) and
|
||||
/// [`AlphabetD`](super::AlphabetD)
|
||||
#[derive(Debug, thiserror::Error)]
|
||||
pub enum ValidateFileAlphabetError {
|
||||
/// Invalid name character
|
||||
|
||||
@ -81,7 +81,8 @@ where
|
||||
},
|
||||
|
||||
// If we got both, but without equal keys, emit the first and store the other.
|
||||
// Note: In all of these branches, `self.value` is empty, as we call both `self.next_{left, right}` functions.
|
||||
// Note: In all of these branches, `self.value` is empty, as we call both `self.next_{left, right}`
|
||||
// functions.
|
||||
(Some((left_key, left)), Some((right_key, right))) => match left_key < right_key {
|
||||
true => {
|
||||
self.value = Some((right_key, Either::Right(right)));
|
||||
|
||||
95
rustfmt.toml
95
rustfmt.toml
@ -3,55 +3,56 @@ unstable_features = true
|
||||
|
||||
|
||||
|
||||
|
||||
binop_separator = "Back"
|
||||
hard_tabs = true
|
||||
condense_wildcard_suffixes = true
|
||||
match_block_trailing_comma = true
|
||||
newline_style = "Unix"
|
||||
reorder_impl_items = true
|
||||
overflow_delimited_expr = true
|
||||
use_field_init_shorthand = true
|
||||
enum_discrim_align_threshold = 100
|
||||
fn_args_layout = "Compressed"
|
||||
merge_derives = false
|
||||
imports_granularity="Crate"
|
||||
max_width = 120
|
||||
use_small_heuristics = "Default"
|
||||
indent_style = "Block"
|
||||
wrap_comments = false
|
||||
format_code_in_doc_comments = false
|
||||
comment_width = 120
|
||||
normalize_comments = false
|
||||
normalize_doc_attributes = false
|
||||
license_template_path = ""
|
||||
format_strings = true
|
||||
format_macro_matchers = true
|
||||
format_macro_bodies = true
|
||||
empty_item_single_line = true
|
||||
struct_lit_single_line = true
|
||||
fn_single_line = false
|
||||
where_single_line = false
|
||||
imports_indent = "Block"
|
||||
imports_layout = "Mixed"
|
||||
reorder_imports = true
|
||||
reorder_modules = true
|
||||
type_punctuation_density = "Wide"
|
||||
space_before_colon = false
|
||||
space_after_colon = true
|
||||
spaces_around_ranges = false
|
||||
remove_nested_parens = true
|
||||
combine_control_expr = true
|
||||
struct_field_align_threshold = 20
|
||||
match_arm_blocks = true
|
||||
force_multiline_blocks = false
|
||||
brace_style = "SameLineWhere"
|
||||
control_brace_style = "AlwaysSameLine"
|
||||
trailing_semicolon = true
|
||||
trailing_comma = "Vertical"
|
||||
blank_lines_lower_bound = 0
|
||||
blank_lines_upper_bound = 2
|
||||
inline_attribute_width = 0
|
||||
use_try_shorthand = true
|
||||
force_explicit_abi = true
|
||||
brace_style = "SameLineWhere"
|
||||
combine_control_expr = true
|
||||
comment_width = 120
|
||||
condense_wildcard_suffixes = true
|
||||
control_brace_style = "AlwaysSameLine"
|
||||
empty_item_single_line = true
|
||||
enum_discrim_align_threshold = 100
|
||||
error_on_line_overflow = true
|
||||
error_on_unformatted = false
|
||||
fn_args_layout = "Compressed"
|
||||
fn_single_line = false
|
||||
force_explicit_abi = true
|
||||
force_multiline_blocks = false
|
||||
format_code_in_doc_comments = false
|
||||
format_macro_bodies = true
|
||||
format_macro_matchers = true
|
||||
format_strings = true
|
||||
hard_tabs = true
|
||||
imports_granularity="Crate"
|
||||
imports_indent = "Block"
|
||||
imports_layout = "Mixed"
|
||||
indent_style = "Block"
|
||||
inline_attribute_width = 0
|
||||
license_template_path = ""
|
||||
match_arm_blocks = true
|
||||
match_block_trailing_comma = true
|
||||
max_width = 120
|
||||
merge_derives = false
|
||||
newline_style = "Unix"
|
||||
normalize_comments = false
|
||||
normalize_doc_attributes = false
|
||||
overflow_delimited_expr = true
|
||||
remove_nested_parens = true
|
||||
reorder_impl_items = true
|
||||
reorder_imports = true
|
||||
reorder_modules = true
|
||||
space_after_colon = true
|
||||
space_before_colon = false
|
||||
spaces_around_ranges = false
|
||||
struct_field_align_threshold = 20
|
||||
struct_lit_single_line = true
|
||||
trailing_comma = "Vertical"
|
||||
trailing_semicolon = true
|
||||
type_punctuation_density = "Wide"
|
||||
use_field_init_shorthand = true
|
||||
use_small_heuristics = "Default"
|
||||
use_try_shorthand = true
|
||||
where_single_line = false
|
||||
wrap_comments = true
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user