From e4a781f24aab5133017d294bb7372d9cebb8ea09 Mon Sep 17 00:00:00 2001 From: Stephen Chung Date: Sat, 9 Jan 2021 10:19:19 +0800 Subject: [PATCH 1/3] Delete benchmark.yml --- .github/workflows/benchmark.yml | 29 ----------------------------- 1 file changed, 29 deletions(-) delete mode 100644 .github/workflows/benchmark.yml diff --git a/.github/workflows/benchmark.yml b/.github/workflows/benchmark.yml deleted file mode 100644 index df310705..00000000 --- a/.github/workflows/benchmark.yml +++ /dev/null @@ -1,29 +0,0 @@ -name: Benchmark -on: - push: - branches: - - master - -jobs: - benchmark: - name: Run Rust benchmark - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v2 - - run: rustup toolchain update nightly && rustup default nightly - - name: Run benchmark - run: cargo +nightly bench | tee output.txt - - name: Store benchmark result - uses: rhysd/github-action-benchmark@v1 - with: - name: Rust Benchmark - tool: 'cargo' - output-file-path: output.txt - # Use personal access token instead of GITHUB_TOKEN due to https://github.community/t5/GitHub-Actions/Github-action-not-triggering-gh-pages-upon-push/td-p/26869/highlight/false - github-token: ${{ secrets.RHAI }} - auto-push: true - # Show alert with commit comment on detecting possible performance regression - alert-threshold: '200%' - comment-on-alert: true - fail-on-alert: true - alert-comment-cc-users: '@schungx' From 13b8f360cb35e2cf797a9cfd9f6c71613b736e99 Mon Sep 17 00:00:00 2001 From: wackbyte Date: Thu, 21 Oct 2021 22:43:30 -0400 Subject: [PATCH 2/3] Fix some rustdoc warnings and a typo in FLOAT's docs Unfortunately, I can't fix the 2 remaining warnings. --- codegen/src/lib.rs | 4 ++-- src/lib.rs | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/codegen/src/lib.rs b/codegen/src/lib.rs index d985757b..a0005864 100644 --- a/codegen/src/lib.rs +++ b/codegen/src/lib.rs @@ -184,7 +184,7 @@ pub fn export_module( proc_macro::TokenStream::from(tokens) } -/// Macro to generate a Rhai `Module` from a _plugin module_ defined via [`#[export_module]`][export_module]. +/// Macro to generate a Rhai `Module` from a _plugin module_ defined via [`#[export_module]`][macro@export_module]. /// /// # Usage /// @@ -265,7 +265,7 @@ pub fn combine_with_exported_module(args: proc_macro::TokenStream) -> proc_macro } } -/// Macro to register a _plugin function_ (defined via [`#[export_fn]`][export_fn]) into an `Engine`. +/// Macro to register a _plugin function_ (defined via [`#[export_fn]`][macro@export_fn]) into an `Engine`. /// /// # Usage /// diff --git a/src/lib.rs b/src/lib.rs index bb8e1ee9..1595116c 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -115,7 +115,7 @@ pub type INT = i32; /// The system floating-point type. It is defined as [`f64`]. /// Not available under `no_float`. /// -/// If the `f32_float` feature is enabled, this will be [`i32`] instead. +/// If the `f32_float` feature is enabled, this will be [`f32`] instead. #[cfg(not(feature = "no_float"))] #[cfg(not(feature = "f32_float"))] pub type FLOAT = f64; From 580b46b5765f85c73e6c98095a3e577bf39ae93a Mon Sep 17 00:00:00 2001 From: magnus Date: Wed, 5 Jan 2022 16:08:02 +0100 Subject: [PATCH 3/3] Fix documentation --- src/types/dynamic.rs | 1 - 1 file changed, 1 deletion(-) diff --git a/src/types/dynamic.rs b/src/types/dynamic.rs index 8186f4bd..05f17c8b 100644 --- a/src/types/dynamic.rs +++ b/src/types/dynamic.rs @@ -1462,7 +1462,6 @@ impl Dynamic { /// Casting to a [`Dynamic`] just returns as is, but if it contains a shared value, /// it is cloned into a [`Dynamic`] with a normal value. /// - /// Returns [`None`] if types mismatched. /// /// # Panics or Deadlocks ///