Implementation of ColdMUD style frobs #198
Annotations
5 warnings
function `verb_invoke_handler` is never used:
crates/web-host/src/host/verbs.rs#L31
warning: function `verb_invoke_handler` is never used
--> crates/web-host/src/host/verbs.rs:31:14
|
31 | pub async fn verb_invoke_handler(
| ^^^^^^^^^^^^^^^^^^^
|
function `json_as_var` is never used:
crates/web-host/src/host/mod.rs#L105
warning: function `json_as_var` is never used
--> crates/web-host/src/host/mod.rs:105:8
|
105 | pub fn json_as_var(j: &serde_json::Value) -> Result<Var, JsonParseError> {
| ^^^^^^^^^^^
|
variants `UnknownType`, `UnknownError`, and `InvalidRepresentation` are never constructed:
crates/web-host/src/host/mod.rs#L98
warning: variants `UnknownType`, `UnknownError`, and `InvalidRepresentation` are never constructed
--> crates/web-host/src/host/mod.rs:98:5
|
96 | pub enum JsonParseError {
| -------------- variants in this enum
97 | #[error("Unknown type")]
98 | UnknownType,
| ^^^^^^^^^^^
99 | #[error("Unknown error")]
100 | UnknownError,
| ^^^^^^^^^^^^
101 | #[error("Invalid representation")]
102 | InvalidRepresentation,
| ^^^^^^^^^^^^^^^^^^^^^
|
= note: `JsonParseError` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis
= note: `#[warn(dead_code)]` on by default
|
very complex type used. Consider factoring parts into `type` definitions:
crates/kernel/src/tasks/task.rs#L558
warning: very complex type used. Consider factoring parts into `type` definitions
--> crates/kernel/src/tasks/task.rs:558:6
|
558 | ) -> Result<Option<((Bytes, VerbDef), Objid)>, CommandError> {
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= 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
|
match expression looks like `matches!` macro:
crates/kernel/src/tasks/scheduler.rs#L388
warning: match expression looks like `matches!` macro
--> crates/kernel/src/tasks/scheduler.rs:388:36
|
388 | let need_tx_oref = match vloc {
| ____________________________________^
389 | | ObjectRef::Id(_) => false,
390 | | _ => true,
391 | | };
| |_________________^ help: try: `!matches!(vloc, ObjectRef::Id(_))`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#match_like_matches_macro
= note: `#[warn(clippy::match_like_matches_macro)]` on by default
|