Skip to content

Commit

Permalink
Repo File Sync: .sync/rust_config/rustfmt.toml: Use Rust default of 4…
Browse files Browse the repository at this point in the history
… space indentation (#1058)

## Description

Format only. `rustfmt.toml` now defaults to tab_spaces to 4 (earlier 2).
No functional changes. No files were actually changed by cargo fmt --all
command in this repo (as there is no cargo.toml in the repo).

- [ ] Impacts functionality?
- [ ] Impacts security?
- [ ] Breaking change?
- [ ] Includes tests?
- [ ] Includes documentation?

## How This Was Tested

No functional change.

## Integration Instructions

N/A

---

synced local file(s) with
[microsoft/mu_devops](https://github.com/microsoft/mu_devops).

🤖: View the [Repo File Sync Configuration
File](https://github.com/microsoft/mu_devops/blob/main/.sync/Files.yml)
to see how files are synced.

---

This PR was created automatically by the
[repo-file-sync-action](https://github.com/BetaHuhn/repo-file-sync-action)
workflow run
[#10037882152](https://github.com/microsoft/mu_devops/actions/runs/10037882152)

Signed-off-by: Project Mu UEFI Bot <uefibot@microsoft.com>
  • Loading branch information
uefibot committed Jul 22, 2024
1 parent a961222 commit 285f5d8
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
6 changes: 6 additions & 0 deletions Makefile.toml
Original file line number Diff line number Diff line change
Expand Up @@ -88,3 +88,9 @@ clear = true
command = "cargo"
args = ["tarpaulin", "@@split(INDIVIDUAL_PACKAGE_TARGETS, )", "@@split(COV_FLAGS, )", "--output-dir", "${CARGO_MAKE_WORKSPACE_WORKING_DIRECTORY}/target"]
dependencies = ["individual-package-targets"]

[tasks.clippy]
description = "Run cargo clippy."
clear = true
command = "cargo"
args = ["clippy", "--all-targets", "--", "-D", "warnings"]
2 changes: 1 addition & 1 deletion rustfmt.toml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ newline_style = "Windows" # Always use Windows line endings '\r\n'
reorder_impl_items = false # Do not force where type and const before macros and methods in impl blocks.
reorder_imports = true # Do reorder import and extern crate statements alphabetically for readability.
reorder_modules = true # Do reorder mod declarations alphabetically for readability.
tab_spaces = 2 # Use 2 spaces for indentation (Rust default is 4).
tab_spaces = 4 # Use 4 spaces for indentation (Rust default).
unstable_features = false # Do not use unstable rustfmt features.
use_small_heuristics = "Max" # Set all granular width settings to the same as max_width (do not use heuristics)
wrap_comments = false # Leave comment formatting to author's discretion

0 comments on commit 285f5d8

Please sign in to comment.