mirror of
https://github.com/eza-community/eza.git
synced 2025-07-07 19:35:33 +00:00
style(rust): unbreak formatting
Signed-off-by: Christina Sørensen <ces@fem.gg>
This commit is contained in:
parent
92c9408cce
commit
3715dc30a8
4 changed files with 6 additions and 5 deletions
|
@ -6,7 +6,8 @@
|
|||
nixfmt.enable = true; # nix
|
||||
statix.enable = true; # nix static analysis
|
||||
deadnix.enable = true; # find dead nix code
|
||||
rustfmt.enable = true; # rust
|
||||
# TODO https://github.com/numtide/treefmt-nix/issues/343
|
||||
#rustfmt.enable = true; # rust
|
||||
shellcheck.enable = true; # bash/shell
|
||||
taplo.enable = true; # toml
|
||||
yamlfmt.enable = true; # yaml
|
||||
|
@ -20,7 +21,7 @@
|
|||
];
|
||||
excludes = [ ".envrc" ];
|
||||
};
|
||||
rustfmt.excludes = [ "src/options/flags.rs" ];
|
||||
#rustfmt.excludes = [ "src/options/flags.rs" ];
|
||||
taplo.excludes = [ "tests/ptests/*.toml" ];
|
||||
yamlfmt.excludes = [ "./powertest.yaml" ];
|
||||
};
|
||||
|
|
|
@ -388,7 +388,7 @@ fn current_branch(repo: &git2::Repository) -> Option<String> {
|
|||
if e.code() == git2::ErrorCode::UnbornBranch
|
||||
|| e.code() == git2::ErrorCode::NotFound =>
|
||||
{
|
||||
return None
|
||||
return None;
|
||||
}
|
||||
Err(e) => {
|
||||
error!("Error looking up Git branch: {:?}", e);
|
||||
|
|
|
@ -204,7 +204,7 @@ impl Options {
|
|||
.is_some()
|
||||
{
|
||||
return Err(OptionsError::Unsupported(String::from(
|
||||
"Options --git and --git-ignore can't be used because `git` feature was disabled in this build of exa"
|
||||
"Options --git and --git-ignore can't be used because `git` feature was disabled in this build of exa",
|
||||
)));
|
||||
}
|
||||
let view = View::deduce(matches, vars)?;
|
||||
|
|
|
@ -45,7 +45,7 @@ impl f::Blocksize {
|
|||
|
||||
let (prefix, n) = match result {
|
||||
NumberPrefix::Standalone(b) => {
|
||||
return TextCell::paint(colours.blocksize(None), numerics.format_int(b))
|
||||
return TextCell::paint(colours.blocksize(None), numerics.format_int(b));
|
||||
}
|
||||
NumberPrefix::Prefixed(p, n) => (p, n),
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue