Skip to content

Commit

Permalink
style: Order fn attributes
Browse files Browse the repository at this point in the history
  • Loading branch information
epage committed Aug 12, 2024
1 parent f75251f commit 6374053
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion clap_complete/tests/testsuite/bash.rs
Original file line number Diff line number Diff line change
Expand Up @@ -249,7 +249,7 @@ fn complete() {
}

#[test]
#[cfg(unix)]
#[cfg(all(unix, feature = "unstable-command"))]
fn register_dynamic_completion() {
common::register_example::<completest_pty::BashRuntimeBuilder>("dynamic", "exhaustive");
}
2 changes: 1 addition & 1 deletion clap_complete/tests/testsuite/elvish.rs
Original file line number Diff line number Diff line change
Expand Up @@ -175,8 +175,8 @@ value value
assert_data_eq!(actual, expected);
}

#[cfg(all(unix, feature = "unstable-command"))]
#[test]
#[cfg(all(unix, feature = "unstable-command"))]
fn register_dynamic() {
common::register_example::<completest_pty::ElvishRuntimeBuilder>("dynamic", "exhaustive");
}
Expand Down
2 changes: 1 addition & 1 deletion clap_complete/tests/testsuite/fish.rs
Original file line number Diff line number Diff line change
Expand Up @@ -165,8 +165,8 @@ bash (bash (shell)) fish (fish shell) zsh (zsh shell)"#;
assert_data_eq!(actual, expected);
}

#[cfg(all(unix, feature = "unstable-command"))]
#[test]
#[cfg(all(unix, feature = "unstable-command"))]
fn register_dynamic() {
common::register_example::<completest_pty::FishRuntimeBuilder>("dynamic", "exhaustive");
}
Expand Down
2 changes: 1 addition & 1 deletion clap_complete/tests/testsuite/zsh.rs
Original file line number Diff line number Diff line change
Expand Up @@ -163,8 +163,8 @@ pacman action alias value quote hint last --
assert_data_eq!(actual, expected);
}

#[cfg(all(unix, feature = "unstable-command"))]
#[test]
#[cfg(all(unix, feature = "unstable-command"))]
fn register_dynamic() {
common::register_example::<completest_pty::ZshRuntimeBuilder>("dynamic", "exhaustive");
}
Expand Down

0 comments on commit 6374053

Please sign in to comment.