You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Refactor and improve code quality across multiple modules
- Updated `store_in_map` methods in `value.rs` to use `clone()` instead of `to_vec()` for better performance.
- Simplified lifetime annotations in `errors.rs` for `GetFrameError`.
- Enhanced documentation comments in `mod.rs`, `plugin.rs`, and `environment.rs` to include backticks for better readability.
- Changed function signatures to `const fn` where applicable for improved compile-time guarantees.
- Added `#[must_use]` attributes to several functions to encourage handling of return values.
- Improved error handling and type casting in various functions for better safety and clarity.
- Removed unnecessary `Deref` and `DerefMut` imports in `environment.rs`.
- Updated `ScriptResult` type to be public for better accessibility.
/// Initialize the global API pointer (for use in environments where initilising an API is already done(e.g. VapourSynth plugins, script environments).)
1047
+
/// Initialize the global API pointer (for use in environments where initilising an API is already done(e.g. `VapourSynth` plugins, script environments).)
1048
1048
///
1049
1049
/// It is not necessary to call this function when using the library in a standalone application, as the API will be initialized automatically when creating a Core.
1050
1050
///
1051
1051
/// # Safety
1052
-
/// This function should only be called once, with a valid pointer to the VapourSynth API
1052
+
/// This function should only be called once, with a valid pointer to the `VapourSynth` API
0 commit comments