Add layered file provider for loose file and cook server loading #389
Annotations
4 errors and 2 warnings
creating a mutable reference to mutable static is discouraged:
hook/src/hooks/mod.rs#L305
error: creating a mutable reference to mutable static is discouraged
--> hook/src/hooks/mod.rs:305:19
|
305 | drop(unsafe { LOG_GUARD.take() });
| ^^^^^^^^^^^^^^^^ mutable reference to mutable static
|
= note: for more information, see <https://doc.rust-lang.org/nightly/edition-guide/rust-2024/static-mut-references.html>
= note: mutable references to mutable statics are dangerous; it's undefined behavior if any other pointer to the static is used or if any other reference is created for the static while the mutable reference lives
|
creating a shared reference to mutable static is discouraged:
hook/src/hooks/mod.rs#L219
error: creating a shared reference to mutable static is discouraged
--> hook/src/hooks/mod.rs:219:40
|
219 | let mut normalized_path = unsafe { SAVES_DIR.as_ref() }?.clone();
| ^^^^^^^^^^^^^^^^^^ shared reference to mutable static
|
= note: for more information, see <https://doc.rust-lang.org/nightly/edition-guide/rust-2024/static-mut-references.html>
= note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives
|
creating a shared reference to mutable static is discouraged:
hook/src/lib.rs#L133
error: creating a shared reference to mutable static is discouraged
--> hook/src/lib.rs:133:14
|
133 | unsafe { GLOBALS.as_ref().unwrap() }
| ^^^^^^^^^^^^^^^^ shared reference to mutable static
|
= note: for more information, see <https://doc.rust-lang.org/nightly/edition-guide/rust-2024/static-mut-references.html>
= note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives
= note: `-D static-mut-refs` implied by `-D warnings`
= help: to override `-D warnings` add `#[allow(static_mut_refs)]`
|
check
Clippy had exited with the 101 exit code
|
check
The following actions uses node12 which is deprecated and will be forced to run on node16: actions-rs/clippy-check@v1. For more info: https://github.blog/changelog/2023-06-13-github-actions-all-actions-will-run-on-node16-instead-of-node12-by-default/
|
check
The following actions use a deprecated Node.js version and will be forced to run on node20: actions/checkout@v3, actions-rs/clippy-check@v1. For more info: https://github.blog/changelog/2024-03-07-github-actions-all-actions-will-run-on-node20-instead-of-node16-by-default/
|