-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #60 from scott-ainsworth/maint/59-cleanup-lints
Maint/59 cleanup lints
- Loading branch information
Showing
21 changed files
with
278 additions
and
163 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,64 +1,78 @@ | ||
# https://github.com/rust-lang/rustfmt/blob/master/Configurations.md | ||
|
||
version = "Two" | ||
tab_spaces = 4 | ||
hard_tabs = false | ||
# Maximum width of each line (Default: 100) | ||
max_width = 96 | ||
newline_style = "Unix" | ||
|
||
format_generated_files = false | ||
struct_variant_width = 96 | ||
comment_width = 96 | ||
# Use tab characters for indentation, spaces for alignment (Default: false) | ||
hard_tabs = false | ||
|
||
# Number of spaces per tab (Default: 4) | ||
tab_spaces = 4 | ||
|
||
# Unix or Windows line endings [Auto|Windows|Unix|Native] (Default: Auto) | ||
newline_style = "Auto" | ||
|
||
# Whether to use different formatting for items and expressions if they satisfy a heuristic | ||
# notion of 'small' [Off|Max|Default] (Default: Default) | ||
use_small_heuristics = "Max" | ||
unstable_features = true | ||
|
||
binop_separator = "Front" | ||
blank_lines_lower_bound = 0 | ||
blank_lines_upper_bound = 2 | ||
#brace_style = "SameLineWhere" | ||
brace_style = "PreferSameLine" | ||
condense_wildcard_suffixes = true | ||
#control_brace_style = "ClosingNextLine" | ||
control_brace_style = "AlwaysSameLine" | ||
# Maximum width of the args of a function call before falling back to vertical formatting. | ||
# (Default: 60) | ||
# fn_call_width = 60 # overridden by use_small_heuristics = "Max" | ||
|
||
edition = "2021" | ||
# Maximum width of the args of a function-like attributes before falling back to vertical | ||
# formatting. (Default: 70) | ||
# attr_fn_like_width = 70 # overridden by use_small_heuristics = "Max" | ||
|
||
empty_item_single_line = true | ||
enum_discrim_align_threshold = 20 | ||
# Maximum width in the body of a struct lit before falling back to vertical formatting. | ||
# (Default: 18) | ||
# struct_lit_width = 18 # overridden by use_small_heuristics = "Max" | ||
|
||
error_on_line_overflow = true | ||
error_on_unformatted = true | ||
# Maximum width in the body of a struct variant before falling back to vertical formatting. | ||
# (Default: 35) | ||
# struct_variant_width = 35 # overridden by use_small_heuristics = "Max" | ||
|
||
# Maximum width of an array literal before falling back to vertical formatting. (Default: 60) | ||
# array_width = 60 # overridden by use_small_heuristics = "Max" | ||
|
||
# Maximum length of a chain to fit on a single line. (Default: 60) | ||
# chain_width = 60 # overridden by use_small_heuristics = "Max" | ||
|
||
# Maximum line length for single line if-else expressions. A value of zero means always break | ||
# if-else expressions. (Default: 50) | ||
# single_line_if_else_max_width = 50 # overridden by use_small_heuristics = "Max" | ||
|
||
# Reorder import and extern crate statements alphabetically (Default: true) | ||
reorder_imports = true | ||
|
||
# Reorder module statements alphabetically in group (Default: true) | ||
reorder_modules = true | ||
|
||
# Remove nested parens (Default: true) | ||
remove_nested_parens = true | ||
|
||
# Determines whether leading pipes are emitted on match arms [Always|Never|Preserve] | ||
# (Default: Never) | ||
match_arm_leading_pipes = "Never" | ||
|
||
# Control the layout of arguments in a function [Compressed|Tall|Vertical] (Default: Tall) | ||
fn_args_layout = "Compressed" | ||
fn_single_line = true | ||
force_explicit_abi = true | ||
force_multiline_blocks = false | ||
format_code_in_doc_comments = true | ||
format_macro_matchers = false | ||
format_macro_bodies = false | ||
format_strings = false | ||
hex_literal_case = "lower" | ||
imports_granularity = "Module" | ||
match_block_trailing_comma = true | ||
|
||
# The edition of the parser (RFC 2052) [2015|2018|2021] (Default: 2015) | ||
edition = "2021" | ||
|
||
# Merge multiple `#[derive(...)]` into a single one (Default: true) | ||
merge_derives = true | ||
normalize_comments = true | ||
normalize_doc_attributes = true | ||
overflow_delimited_expr = true | ||
remove_nested_parens = true | ||
#reorder_impl_items = true | ||
reorder_imports = false | ||
group_imports = "StdExternalCrate" | ||
reorder_modules = true | ||
report_fixme = "Unnumbered" | ||
report_todo = "Unnumbered" | ||
space_after_colon = true | ||
space_before_colon = false | ||
spaces_around_ranges = false | ||
struct_lit_single_line = true | ||
trailing_comma = "Vertical" | ||
trailing_semicolon = true | ||
type_punctuation_density = "Wide" | ||
use_try_shorthand = true | ||
where_single_line = false | ||
wrap_comments = true | ||
|
||
# Replace uses of the try! macro by the ? shorthand (Default: false) | ||
use_try_shorthand = false | ||
|
||
# Use field initialization shorthand if possible (Default: false) | ||
use_field_init_shorthand = false | ||
|
||
# Always print the abi for extern items (Default: true) | ||
force_explicit_abi = true | ||
|
||
# Prints the names of mismatched files that were formatted. Prints the names of files that | ||
# would be formated when used with `--check` mode (Default: false) | ||
print_misformatted_file_names = true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
[package] | ||
name = "avahi-alias-daemon" | ||
authors = [ "Scott G. Ainsworth" ] | ||
version = "1.1.0-alpha" | ||
edition = "2021" | ||
description = "Avahi aliases manager" | ||
license = "MIT OR Apache-2.0" | ||
keywords = ["avahi", "zeroconf", "bonjour"] | ||
categories = ["command-line-utilities", "os::linux-apis"] | ||
publish = false | ||
|
||
[badges] | ||
maintenance = { status = "experimental" } | ||
|
||
[dependencies] | ||
avahi-aliases = { path = "../avahi-aliases-lib" } | ||
anyhow = "1.0.45" | ||
clap = "2.33.3" | ||
dbus = "0.9.5" | ||
log = "0.4.14" | ||
paw = "1.0.0" | ||
time = { version = "0.3.5", features = [ "formatting" ] } | ||
structopt = { version = "0.3.25", default-features = false, features = [ "paw" ] } | ||
|
||
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
[package] | ||
name = "avahi-alias" | ||
authors = [ "Scott G. Ainsworth" ] | ||
version = "1.1.0-alpha" | ||
edition = "2021" | ||
description = "Avahi aliases manager" | ||
license = "MIT OR Apache-2.0" | ||
keywords = ["avahi", "zeroconf", "bonjour"] | ||
categories = ["command-line-utilities", "os::linux-apis"] | ||
publish = false | ||
|
||
[badges] | ||
maintenance = { status = "experimental" } | ||
|
||
[dependencies] | ||
avahi-aliases = { path = "../avahi-aliases-lib" } | ||
anyhow = "1.0.45" | ||
log = "0.4.14" | ||
paw = "1.0.0" | ||
#structopt = { version = "0.3.25", default-features = false, features = [ "paw" ] } | ||
|
||
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.