fix name must not be falsy error #151
release-amxxpawn.yml
on: push
Matrix: build
Publish to VSCode marketplace
0s
Publish to Open VSX
0s
Annotations
7 warnings
this `map_or` is redundant:
crates/sourcepawn-studio/src/config.rs#L147
warning: this `map_or` is redundant
--> crates/sourcepawn-studio/src/config.rs:147:30
|
147 | if json.is_null() || json.as_object().map_or(false, |it| it.is_empty()) {
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: use is_some_and instead: `json.as_object().is_some_and(|it| it.is_empty())`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_map_or
= note: `#[warn(clippy::unnecessary_map_or)]` on by default
|
calling `CStr::new` with a byte string literal:
crates/profile/src/memory_usage.rs#L75
warning: calling `CStr::new` with a byte string literal
--> crates/profile/src/memory_usage.rs:75:20
|
75 | let cstr = CStr::from_bytes_with_nul(b"mallinfo2\0").unwrap();
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: use a `c""` literal: `c"mallinfo2"`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#manual_c_str_literals
= note: `#[warn(clippy::manual_c_str_literals)]` on by default
|
unexpected `cfg` condition value: `cpu_profiler`:
crates/profile/src/lib.rs#L109
warning: unexpected `cfg` condition value: `cpu_profiler`
--> crates/profile/src/lib.rs:109:15
|
109 | #[cfg(feature = "cpu_profiler")]
| ^^^^^^^^^^^^^^^^^^^^^^^^ help: remove the condition
|
= note: no expected values for `feature`
= help: consider adding `cpu_profiler` as a feature in `Cargo.toml`
= note: see <https://doc.rust-lang.org/nightly/rustc/check-cfg/cargo-specifics.html> for more information about checking conditional configuration
|
unexpected `cfg` condition value: `cpu_profiler`:
crates/profile/src/lib.rs#L97
warning: unexpected `cfg` condition value: `cpu_profiler`
--> crates/profile/src/lib.rs:97:15
|
97 | #[cfg(not(feature = "cpu_profiler"))]
| ^^^^^^^^^^^^^^^^^^^^^^^^ help: remove the condition
|
= note: no expected values for `feature`
= help: consider adding `cpu_profiler` as a feature in `Cargo.toml`
= note: see <https://doc.rust-lang.org/nightly/rustc/check-cfg/cargo-specifics.html> for more information about checking conditional configuration
|
unexpected `cfg` condition value: `cpu_profiler`:
crates/profile/src/lib.rs#L92
warning: unexpected `cfg` condition value: `cpu_profiler`
--> crates/profile/src/lib.rs:92:11
|
92 | #[cfg(feature = "cpu_profiler")]
| ^^^^^^^^^^^^^^^^^^^^^^^^ help: remove the condition
|
= note: no expected values for `feature`
= help: consider adding `cpu_profiler` as a feature in `Cargo.toml`
= note: see <https://doc.rust-lang.org/nightly/rustc/check-cfg/cargo-specifics.html> for more information about checking conditional configuration
|
unexpected `cfg` condition value: `jemalloc`:
crates/profile/src/memory_usage.rs#L31
warning: unexpected `cfg` condition value: `jemalloc`
--> crates/profile/src/memory_usage.rs:31:26
|
31 | if #[cfg(all(feature = "jemalloc", not(target_env = "msvc")))] {
| ^^^^^^^^^^^^^^^^^^^^ help: remove the condition
|
= note: no expected values for `feature`
= help: consider adding `jemalloc` as a feature in `Cargo.toml`
= note: see <https://doc.rust-lang.org/nightly/rustc/check-cfg/cargo-specifics.html> for more information about checking conditional configuration
|
unexpected `cfg` condition value: `jemalloc`:
crates/profile/src/memory_usage.rs#L61
warning: unexpected `cfg` condition value: `jemalloc`
--> crates/profile/src/memory_usage.rs:61:56
|
61 | #[cfg(all(target_os = "linux", target_env = "gnu", not(feature = "jemalloc")))]
| ^^^^^^^^^^^^^^^^^^^^ help: remove the condition
|
= note: no expected values for `feature`
= help: consider adding `jemalloc` as a feature in `Cargo.toml`
= note: see <https://doc.rust-lang.org/nightly/rustc/check-cfg/cargo-specifics.html> for more information about checking conditional configuration
= note: `#[warn(unexpected_cfgs)]` on by default
|