diff --git a/.gitea/workflows/cargo.yaml b/.gitea/workflows/cargo.yaml index 1d25ca4..f98be1c 100644 --- a/.gitea/workflows/cargo.yaml +++ b/.gitea/workflows/cargo.yaml @@ -25,7 +25,7 @@ jobs: # Defaults to "Apply automatic changes" commit_message: CI cargo fmt fix: - name: cargo fmt + name: cargo fix permissions: # Give the default GITHUB_TOKEN write permission to commit and push the # added or changed files to the repository. diff --git a/members/revsqrt/src/main.rs b/members/revsqrt/src/main.rs index a4cee0b..c52f145 100644 --- a/members/revsqrt/src/main.rs +++ b/members/revsqrt/src/main.rs @@ -25,11 +25,13 @@ fn main() { let fr = fast_inverse_sqrt(n); let fdur = start.elapsed(); - println!("regular\tinverse square root of {n}: {rr}\t(took {rdur:?})\n\ + println!( + "regular\tinverse square root of {n}: {rr}\t(took {rdur:?})\n\ fast \tinverse square root of {n}: {fr}\t(took {fdur:?})\n\n\ The timings are not accurate. Benchmarks show ~170 ps for each.\n\ The CPU has a instruction for sqrt, and 1/x is simple division, so\n\ - an algorithm like fast inverse square root can hardly be faster."); + an algorithm like fast inverse square root can hardly be faster." + ); } fn usage(invocation: &str) {