fix: panics and errors #69
Annotations
8 warnings
|
very complex type used. Consider factoring parts into `type` definitions:
azalea/src/swarm/mod.rs#L88
warning: very complex type used. Consider factoring parts into `type` definitions
--> azalea/src/swarm/mod.rs:88:34
|
88 | pub(crate) account_supplier: Option<Arc<dyn Fn(usize) -> Option<(Account, S, JoinOpts)> + Send + Sync>>,
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#type_complexity
= note: `#[warn(clippy::type_complexity)]` on by default
|
|
unused import: `info`:
azalea/src/swarm/mod.rs#L35
warning: unused import: `info`
--> azalea/src/swarm/mod.rs:35:29
|
35 | use tracing::{debug, error, info, warn};
| ^^^^
|
= note: `#[warn(unused_imports)]` on by default
|
|
deref on an immutable reference:
azalea-entity/src/plugin/relative_updates.rs#L84
warning: deref on an immutable reference
--> azalea-entity/src/plugin/relative_updates.rs:84:75
|
84 | let Some(&entity_id) = entity.get::<MinecraftEntityId>().map(|id| &*id) else {
| ^^^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#borrow_deref_ref
= note: `#[warn(clippy::borrow_deref_ref)]` on by default
help: if you would like to reborrow, try removing `&*`
|
84 - let Some(&entity_id) = entity.get::<MinecraftEntityId>().map(|id| &*id) else {
84 + let Some(&entity_id) = entity.get::<MinecraftEntityId>().map(|id| id) else {
|
help: if you would like to deref, try using `&**`
|
84 | let Some(&entity_id) = entity.get::<MinecraftEntityId>().map(|id| &**id) else {
| +
|
|
unnecessary parentheses around type:
azalea-brigadier/src/context/context_chain.rs#L92
warning: unnecessary parentheses around type
--> azalea-brigadier/src/context/context_chain.rs:92:27
|
92 | result_consumer: &(dyn ResultConsumer<S>),
| ^ ^
|
= note: `#[warn(unused_parens)]` on by default
help: remove these parentheses
|
92 - result_consumer: &(dyn ResultConsumer<S>),
92 + result_consumer: &dyn ResultConsumer<S>,
|
|
|
clippy_check
The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
|
|
clippy_check
The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
|
|
clippy_check
The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
|
|
clippy_check
The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
|