Skip to content
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

examples/aggregated-query.rs: #672

Conversation

RandyMcMillan
Copy link
Contributor

No description provided.

Some(Duration::from_secs(10)).unwrap(),
@RandyMcMillan RandyMcMillan marked this pull request as draft December 11, 2024 16:08
@RandyMcMillan RandyMcMillan marked this pull request as ready for review December 11, 2024 16:08
index af6bafc1..eedc1ec4 100755
--- a/contrib/scripts/check-fmt.sh
+++ b/contrib/scripts/check-fmt.sh
@@ -2,7 +2,7 @@

 set -euo pipefail

-version="nightly-2024-11-18"
+version=${2:-nightly-2024-11-18}
 flags=""

 # Check if "check" is passed as an argument
@@ -11,7 +11,8 @@ if [[ "$#" -gt 0 && "$1" == "check" ]]; then
 fi

 # Install toolchain
-cargo +$version --version || (rustup install $version && rustup component add rustfmt --toolchain $version)
+cargo +$version --version 2>/dev/null || (rustup install $version && rustup component add rustfmt --toolchain $version)

 # Check workspace crates
-cargo +$version fmt --all -- --config format_code_in_doc_comments=true $flags
+cargo +$version fmt --all -- --config format_code_in_doc_comments=true $flags 2>/dev/null || \
+rustup run $version cargo fmt --all -- --config format_code_in_doc_comments=true $flags
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant