generated from rust-vmm/crate-template
-
Notifications
You must be signed in to change notification settings - Fork 69
staging: add workspace-wide rustfmt lints #552
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Closed
Closed
Changes from all commits
Commits
Show all changes
6 commits
Select commit
Hold shift + click to select a range
a11b4ce
sound: upgrade to 2021 Rust edition
epilys e576905
staging: move rustfmt.toml to workspace directory
epilys 261a881
.buildkite: add nightly rustfmt check in staging
epilys 25ef9da
staging/rustfmt.toml: update
epilys 61d211d
staging: fix rustfmt lints from previous commit
epilys 58ab804
Add .git-blame-ignore-revs file
epilys File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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,9 @@ | ||
{ | ||
"tests": [ | ||
{ | ||
"test_name": "staging: style", | ||
"command": "cd staging && cargo +nightly fmt --all -- --config-path rustfmt.toml --check" | ||
} | ||
] | ||
} | ||
|
This file contains hidden or 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,2 @@ | ||
# staging: fix rustfmt lints from previous commit | ||
61d211d1069631ed185d5799f92ae0498af7b9a3 |
This file contains hidden or 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,76 @@ | ||
edition = "2021" | ||
epilys marked this conversation as resolved.
Show resolved
Hide resolved
|
||
# Format generated files. A file is considered generated if any of the first | ||
# five lines contain a @generated comment marker. (default value is true) | ||
format_generated_files = false | ||
# Format code snippet included in doc comments. (default value is false) | ||
format_code_in_doc_comments = true | ||
# Format the metavariable matching patterns in macros. (default value is false) | ||
format_macro_matchers = true | ||
# Control the case of the letters in hexadecimal literal values (default value is Preserve) | ||
hex_literal_case = "Upper" | ||
match_block_trailing_comma = false | ||
# Controls how imports are structured in use statements. Imports will be merged | ||
# or split to the configured level of granularity. (default value is Preserve) | ||
imports_granularity = "Crate" | ||
# Unix or Windows line endings (default value is Auto) | ||
newline_style = "Unix" | ||
# Convert /* */ comments to // comments where possible. (default value is false) | ||
normalize_comments = true | ||
# Convert #![doc] and #[doc] attributes to //! and /// doc comments. (default value is false) | ||
normalize_doc_attributes = true | ||
# Reorder impl items. type and const are put first, then macros and methods. (default value is false) | ||
reorder_impl_items = true | ||
# Format string literals where necessary. (default value is false) | ||
format_strings = true | ||
# Discard existing import groups, and create three groups for: | ||
# | ||
# std, core and alloc, | ||
# external crates, | ||
# self, super and crate imports. | ||
group_imports = "StdExternalCrate" | ||
# Break comments to fit on the line (default value is false) | ||
wrap_comments = true | ||
# Minimum number of blank lines which must be put between items. If two items | ||
# have fewer blank lines between them, additional blank lines are inserted. | ||
# (default value is 0) | ||
blank_lines_upper_bound = 1 | ||
# Replace strings of _ wildcards by a single .. in tuple patterns (default value is false) | ||
condense_wildcard_suffixes = true | ||
# Use field initialize shorthand if possible. (default value is false) | ||
use_field_init_shorthand = true | ||
# Which version of the formatting rules to use. Version::One is | ||
# backwards-compatible with Rustfmt 1.0. Other versions are only backwards | ||
# compatible within a major version number. (default value is "One" | ||
version = "Two" | ||
|
||
## Default values | ||
# | ||
## Max width for code snippets included in doc comments. Only used if | ||
## format_code_in_doc_comments is true. (default value) | ||
#doc_comment_code_block_width = 100 | ||
## Format the bodies of macros. (default value) | ||
#format_macro_bodies = true | ||
## Use tab characters for indentation, spaces for alignment. (default value) | ||
#hard_tabs = false | ||
## Indent style of imports (default value) | ||
#imports_indent = "Block" | ||
## Item layout inside a imports block. (default value) | ||
#imports_layout = "Mixed" | ||
## Indent on expressions or items. (default value) | ||
#indent_style = "Block" | ||
## (default value) | ||
#max_width = 100 | ||
## Merge multiple derives into a single one. (default value) | ||
#merge_derives = true | ||
## Remove nested parens. (default value) | ||
#remove_nested_parens = true | ||
## Number of spaces per tab (default value) | ||
#tab_spaces = 4 | ||
## How to handle trailing commas for lists (default value) | ||
#trailing_comma = "Vertical" | ||
## Add trailing semicolon after break, continue and return. (default value) | ||
#trailing_semicolon = true | ||
## Reorder import and extern crate statements alphabetically in groups (a group is separated by a newline). (default value) | ||
#reorder_imports = true | ||
## Reorder mod declarations alphabetically in group. (default value) | ||
#reorder_modules = true |
This file contains hidden or 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 was deleted.
Oops, something went wrong.
This file contains hidden or 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,5 +1,4 @@ | ||
/// Alsa backend | ||
// | ||
// Manos Pitsidianakis <[email protected]> | ||
// SPDX-License-Identifier: Apache-2.0 or BSD-3-Clause | ||
use std::{ | ||
|
@@ -734,6 +733,11 @@ impl AudioBackend for AlsaBackend { | |
start Start, | ||
} | ||
|
||
send_action! { | ||
ctrl set_parameters SetParameters, | ||
ctrl release Release, | ||
} | ||
|
||
fn stop(&self, id: u32) -> CrateResult<()> { | ||
if let Some(Err(err)) = self | ||
.streams | ||
|
@@ -746,9 +750,4 @@ impl AudioBackend for AlsaBackend { | |
} | ||
Ok(()) | ||
} | ||
|
||
send_action! { | ||
ctrl set_parameters SetParameters, | ||
ctrl release Release, | ||
} | ||
} |
This file contains hidden or 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 hidden or 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 hidden or 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 hidden or 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 was deleted.
Oops, something went wrong.
This file contains hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.