feat: wasm feature control
#123
Merged
Annotations
9 errors
|
|
|
amico-mods/src/std/ai/session.rs#L22
error: variables can be used directly in the `format!` string
--> amico-mods/src/std/ai/session.rs:22:36
|
22 | messages.push_str(&format!("- tr: {}[{}] => {}\n", name, id, params))
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#uninlined_format_args
help: change this to
|
22 - messages.push_str(&format!("- tr: {}[{}] => {}\n", name, id, params))
22 + messages.push_str(&format!("- tr: {name}[{id}] => {params}\n"))
|
|
|
amico-mods/src/std/ai/session.rs#L19
error: variables can be used directly in the `format!` string
--> amico-mods/src/std/ai/session.rs:19:36
|
19 | messages.push_str(&format!("- tc: {}[{}] ({})\n", name, id, params))
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#uninlined_format_args
help: change this to
|
19 - messages.push_str(&format!("- tc: {}[{}] ({})\n", name, id, params))
19 + messages.push_str(&format!("- tc: {name}[{id}] ({params})\n"))
|
|
|
amico-mods/src/std/ai/session.rs#L17
error: variables can be used directly in the `format!` string
--> amico-mods/src/std/ai/session.rs:17:55
|
17 | Message::User(text) => messages.push_str(&format!("- u: {}\n", text)),
| ^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#uninlined_format_args
help: change this to
|
17 - Message::User(text) => messages.push_str(&format!("- u: {}\n", text)),
17 + Message::User(text) => messages.push_str(&format!("- u: {text}\n")),
|
|
|
amico-mods/src/std/ai/session.rs#L16
error: variables can be used directly in the `format!` string
--> amico-mods/src/std/ai/session.rs:16:60
|
16 | Message::Assistant(text) => messages.push_str(&format!("- a: {}\n", text)),
| ^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#uninlined_format_args
help: change this to
|
16 - Message::Assistant(text) => messages.push_str(&format!("- a: {}\n", text)),
16 + Message::Assistant(text) => messages.push_str(&format!("- a: {text}\n")),
|
|
|
amico-mods/src/std/ai/services/speech.rs#L77
error: variables can be used directly in the `format!` string
--> amico-mods/src/std/ai/services/speech.rs:77:48
|
77 | return Err(TtsError::TtsSynthesisError(format!(
| ________________________________________________^
78 | | "OpenAI API error: {}",
79 | | error_message
80 | | )));
| |_________^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#uninlined_format_args
|
|
amico-sdk/src/runtime/storage.rs#L80
error: variables can be used directly in the `format!` string
--> amico-sdk/src/runtime/storage.rs:80:37
|
80 | StorageError::FromBytes(format!("Converting raw data to UTF-8 String: {}", err))
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#uninlined_format_args
help: change this to
|
80 - StorageError::FromBytes(format!("Converting raw data to UTF-8 String: {}", err))
80 + StorageError::FromBytes(format!("Converting raw data to UTF-8 String: {err}"))
|
|
|
amico-mods/src/runtime/storage/fs.rs#L46
error: variables can be used directly in the `format!` string
--> amico-mods/src/runtime/storage/fs.rs:46:28
|
46 | self.root_dir.join(format!("{}.json", namespace))
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#uninlined_format_args
= note: `-D clippy::uninlined-format-args` implied by `-D warnings`
= help: to override `-D warnings` add `#[allow(clippy::uninlined_format_args)]`
help: change this to
|
46 - self.root_dir.join(format!("{}.json", namespace))
46 + self.root_dir.join(format!("{namespace}.json"))
|
|
|
amico-sdk/src/ai/tool.rs#L140
error: variables can be used directly in the `format!` string
--> amico-sdk/src/ai/tool.rs:140:29
|
140 | .map(|name| format!("- {} \n", name))
| ^^^^^^^^^^^^^^^^^^^^^^^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#uninlined_format_args
= note: `-D clippy::uninlined-format-args` implied by `-D warnings`
= help: to override `-D warnings` add `#[allow(clippy::uninlined_format_args)]`
help: change this to
|
140 - .map(|name| format!("- {} \n", name))
140 + .map(|name| format!("- {name} \n"))
|
|
The logs for this run have expired and are no longer available.
Loading