Task #142939 - fixed.err

back to task #142939
download
Error: CLIPPY_WARNING:
crates/goose-cli/src/recipes/print_recipe.rs:90:54: warning: redundant reference in `eprintln!` argument
#     |
#  90 |     eprintln!("{} {}", style("Description:").bold(), &recipe.description);
#     |                                                      ^^^^^^^^^^^^^^^^^^^ help: remove the redundant `&`: `recipe.description`
#     |
#     = help: for further information visit https://rust-lang.github.io/rust-clippy/rust-1.98.0/index.html#useless_borrows_in_formatting
#     = note: `#[warn(clippy::useless_borrows_in_formatting)]` on by default

Error: CLIPPY_WARNING:
crates/goose-cli/src/session/builder.rs:419:6: warning: the `Err`-variant returned from this function is very large
#      |
#  419 | ) -> Result<Vec<ExtensionConfig>, ExtensionError> {
#      |      ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the `Err`-variant is at least 880 bytes
#      |
#      = help: try reducing the size of `goose::agents::ExtensionError`, for example by boxing large elements or replacing it with `Box<goose::agents::ExtensionError>`
#      = help: for further information visit https://rust-lang.github.io/rust-clippy/rust-1.98.0/index.html#result_large_err
#      = note: `#[warn(clippy::result_large_err)]` on by default

Error: CLIPPY_WARNING:
crates/goose-cli/src/session/mod.rs:536:63: warning: redundant reference in `format!` argument
#      |
#  536 |                 console::style(format!("session closed ยท {}", &self.session_id)).dim()
#      |                                                               ^^^^^^^^^^^^^^^^ help: remove the redundant `&`: `self.session_id`
#      |
#      = help: for further information visit https://rust-lang.github.io/rust-clippy/rust-1.98.0/index.html#useless_borrows_in_formatting

Error: CLIPPY_WARNING:
crates/goose/src/agents/agent.rs:1375:10: warning: the `Err`-variant returned from this function is very large
#       |
#  1375 |     ) -> ExtensionResult<()> {
#       |          ^^^^^^^^^^^^^^^^^^^
#       |
#      ::: crates/goose/src/agents/extension.rs:53:5
#       |
#    53 |     InitializeError(#[from] ClientInitializeError),
#       |     ---------------------------------------------- the variant `InitializeError` contains at least 856 bytes
#    54 |     #[error("{0}")]
#    55 |     ProcessExit(#[from] ProcessExit),
#       |     -------------------------------- the largest variant contains at least 880 bytes
#       |
#       = help: try reducing the size of `agents::extension::ExtensionError`, for example by boxing large elements or replacing it with `Box<agents::extension::ExtensionError>`
#       = help: for further information visit https://rust-lang.github.io/rust-clippy/rust-1.98.0/index.html#result_large_err
#       = note: `#[warn(clippy::result_large_err)]` on by default

Error: CLIPPY_WARNING:
crates/goose/src/agents/agent.rs:1461:10: warning: the `Err`-variant returned from this function is very large
#       |
#  1461 |     ) -> ExtensionResult<()> {
#       |          ^^^^^^^^^^^^^^^^^^^
#       |
#      ::: crates/goose/src/agents/extension.rs:53:5
#       |
#    53 |     InitializeError(#[from] ClientInitializeError),
#       |     ---------------------------------------------- the variant `InitializeError` contains at least 856 bytes
#    54 |     #[error("{0}")]
#    55 |     ProcessExit(#[from] ProcessExit),
#       |     -------------------------------- the largest variant contains at least 880 bytes
#       |
#       = help: try reducing the size of `agents::extension::ExtensionError`, for example by boxing large elements or replacing it with `Box<agents::extension::ExtensionError>`
#       = help: for further information visit https://rust-lang.github.io/rust-clippy/rust-1.98.0/index.html#result_large_err

Error: CLIPPY_WARNING:
crates/goose/src/agents/extension.rs:446:52: warning: the `Err`-variant returned from this function is very large
#      |
#   53 |     InitializeError(#[from] ClientInitializeError),
#      |     ---------------------------------------------- the variant `InitializeError` contains at least 856 bytes
#   54 |     #[error("{0}")]
#   55 |     ProcessExit(#[from] ProcessExit),
#      |     -------------------------------- the largest variant contains at least 880 bytes
#  ...
#  446 |     pub async fn resolve(self, config: &Config) -> ExtensionResult<Self> {
#      |                                                    ^^^^^^^^^^^^^^^^^^^^^
#      |
#      = help: try reducing the size of `agents::extension::ExtensionError`, for example by boxing large elements or replacing it with `Box<agents::extension::ExtensionError>`
#      = help: for further information visit https://rust-lang.github.io/rust-clippy/rust-1.98.0/index.html#result_large_err

Error: CLIPPY_WARNING:
crates/goose/src/agents/extension_malware_check.rs:39:10: warning: the `Err`-variant returned from this function is very large
#     |
#  39 |     ) -> Result<(), ExtensionError> {
#     |          ^^^^^^^^^^^^^^^^^^^^^^^^^^
#     |
#    ::: crates/goose/src/agents/extension.rs:53:5
#     |
#  53 |     InitializeError(#[from] ClientInitializeError),
#     |     ---------------------------------------------- the variant `InitializeError` contains at least 856 bytes
#  54 |     #[error("{0}")]
#  55 |     ProcessExit(#[from] ProcessExit),
#     |     -------------------------------- the largest variant contains at least 880 bytes
#     |
#     = help: try reducing the size of `agents::extension::ExtensionError`, for example by boxing large elements or replacing it with `Box<agents::extension::ExtensionError>`
#     = help: for further information visit https://rust-lang.github.io/rust-clippy/rust-1.98.0/index.html#result_large_err

Error: CLIPPY_WARNING:
crates/goose/src/agents/extension_malware_check.rs:48:72: warning: the `Err`-variant returned from this function is very large
#     |
#  48 | pub async fn deny_if_malicious_cmd_args(cmd: &str, args: &[String]) -> Result<(), ExtensionError> {
#     |                                                                        ^^^^^^^^^^^^^^^^^^^^^^^^^^
#     |
#    ::: crates/goose/src/agents/extension.rs:53:5
#     |
#  53 |     InitializeError(#[from] ClientInitializeError),
#     |     ---------------------------------------------- the variant `InitializeError` contains at least 856 bytes
#  54 |     #[error("{0}")]
#  55 |     ProcessExit(#[from] ProcessExit),
#     |     -------------------------------- the largest variant contains at least 880 bytes
#     |
#     = help: try reducing the size of `agents::extension::ExtensionError`, for example by boxing large elements or replacing it with `Box<agents::extension::ExtensionError>`
#     = help: for further information visit https://rust-lang.github.io/rust-clippy/rust-1.98.0/index.html#result_large_err

Error: CLIPPY_WARNING:
crates/goose/src/agents/extension_malware_check.rs:75:6: warning: the `Err`-variant returned from this function is very large
#     |
#  75 | ) -> Result<(), ExtensionError> {
#     |      ^^^^^^^^^^^^^^^^^^^^^^^^^^
#     |
#    ::: crates/goose/src/agents/extension.rs:53:5
#     |
#  53 |     InitializeError(#[from] ClientInitializeError),
#     |     ---------------------------------------------- the variant `InitializeError` contains at least 856 bytes
#  54 |     #[error("{0}")]
#  55 |     ProcessExit(#[from] ProcessExit),
#     |     -------------------------------- the largest variant contains at least 880 bytes
#     |
#     = help: try reducing the size of `agents::extension::ExtensionError`, for example by boxing large elements or replacing it with `Box<agents::extension::ExtensionError>`
#     = help: for further information visit https://rust-lang.github.io/rust-clippy/rust-1.98.0/index.html#result_large_err

Error: CLIPPY_WARNING:
crates/goose/src/agents/extension_malware_check.rs:194:6: warning: the `Err`-variant returned from this function is very large
#      |
#  194 | ) -> Result<(), ExtensionError> {
#      |      ^^^^^^^^^^^^^^^^^^^^^^^^^^
#      |
#     ::: crates/goose/src/agents/extension.rs:53:5
#      |
#   53 |     InitializeError(#[from] ClientInitializeError),
#      |     ---------------------------------------------- the variant `InitializeError` contains at least 856 bytes
#   54 |     #[error("{0}")]
#   55 |     ProcessExit(#[from] ProcessExit),
#      |     -------------------------------- the largest variant contains at least 880 bytes
#      |
#      = help: try reducing the size of `agents::extension::ExtensionError`, for example by boxing large elements or replacing it with `Box<agents::extension::ExtensionError>`
#      = help: for further information visit https://rust-lang.github.io/rust-clippy/rust-1.98.0/index.html#result_large_err

Error: CLIPPY_WARNING:
crates/goose/src/agents/extension_manager.rs:413:6: warning: the `Err`-variant returned from this function is very large
#      |
#  413 | ) -> ExtensionResult<McpClient> {
#      |      ^^^^^^^^^^^^^^^^^^^^^^^^^^
#      |
#     ::: crates/goose/src/agents/extension.rs:53:5
#      |
#   53 |     InitializeError(#[from] ClientInitializeError),
#      |     ---------------------------------------------- the variant `InitializeError` contains at least 856 bytes
#   54 |     #[error("{0}")]
#   55 |     ProcessExit(#[from] ProcessExit),
#      |     -------------------------------- the largest variant contains at least 880 bytes
#      |
#      = help: try reducing the size of `agents::extension::ExtensionError`, for example by boxing large elements or replacing it with `Box<agents::extension::ExtensionError>`
#      = help: for further information visit https://rust-lang.github.io/rust-clippy/rust-1.98.0/index.html#result_large_err

Error: CLIPPY_WARNING:
crates/goose/src/agents/extension_manager.rs:533:6: warning: the `Err`-variant returned from this function is very large
#      |
#  533 | ) -> Result<HashMap<String, String>, ExtensionError> {
#      |      ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
#      |
#     ::: crates/goose/src/agents/extension.rs:53:5
#      |
#   53 |     InitializeError(#[from] ClientInitializeError),
#      |     ---------------------------------------------- the variant `InitializeError` contains at least 856 bytes
#   54 |     #[error("{0}")]
#   55 |     ProcessExit(#[from] ProcessExit),
#      |     -------------------------------- the largest variant contains at least 880 bytes
#      |
#      = help: try reducing the size of `agents::extension::ExtensionError`, for example by boxing large elements or replacing it with `Box<agents::extension::ExtensionError>`
#      = help: for further information visit https://rust-lang.github.io/rust-clippy/rust-1.98.0/index.html#result_large_err

Error: CLIPPY_WARNING:
crates/goose/src/agents/extension_manager.rs:621:6: warning: the `Err`-variant returned from this function is very large
#      |
#  621 | ) -> ExtensionResult<Box<dyn McpClientTrait>> {
#      |      ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
#      |
#     ::: crates/goose/src/agents/extension.rs:53:5
#      |
#   53 |     InitializeError(#[from] ClientInitializeError),
#      |     ---------------------------------------------- the variant `InitializeError` contains at least 856 bytes
#   54 |     #[error("{0}")]
#   55 |     ProcessExit(#[from] ProcessExit),
#      |     -------------------------------- the largest variant contains at least 880 bytes
#      |
#      = help: try reducing the size of `agents::extension::ExtensionError`, for example by boxing large elements or replacing it with `Box<agents::extension::ExtensionError>`
#      = help: for further information visit https://rust-lang.github.io/rust-clippy/rust-1.98.0/index.html#result_large_err

Error: CLIPPY_WARNING:
crates/goose/src/agents/extension_manager.rs:672:6: warning: the `Err`-variant returned from this function is very large
#      |
#  672 | ) -> ExtensionResult<Box<dyn McpClientTrait>> {
#      |      ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
#      |
#     ::: crates/goose/src/agents/extension.rs:53:5
#      |
#   53 |     InitializeError(#[from] ClientInitializeError),
#      |     ---------------------------------------------- the variant `InitializeError` contains at least 856 bytes
#   54 |     #[error("{0}")]
#   55 |     ProcessExit(#[from] ProcessExit),
#      |     -------------------------------- the largest variant contains at least 880 bytes
#      |
#      = help: try reducing the size of `agents::extension::ExtensionError`, for example by boxing large elements or replacing it with `Box<agents::extension::ExtensionError>`
#      = help: for further information visit https://rust-lang.github.io/rust-clippy/rust-1.98.0/index.html#result_large_err

Error: CLIPPY_WARNING:
crates/goose/src/agents/extension_manager.rs:815:6: warning: the `Err`-variant returned from this function is very large
#      |
#  815 | ) -> ExtensionResult<Box<dyn McpClientTrait>> {
#      |      ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
#      |
#     ::: crates/goose/src/agents/extension.rs:53:5
#      |
#   53 |     InitializeError(#[from] ClientInitializeError),
#      |     ---------------------------------------------- the variant `InitializeError` contains at least 856 bytes
#   54 |     #[error("{0}")]
#   55 |     ProcessExit(#[from] ProcessExit),
#      |     -------------------------------- the largest variant contains at least 880 bytes
#      |
#      = help: try reducing the size of `agents::extension::ExtensionError`, for example by boxing large elements or replacing it with `Box<agents::extension::ExtensionError>`
#      = help: for further information visit https://rust-lang.github.io/rust-clippy/rust-1.98.0/index.html#result_large_err

Error: CLIPPY_WARNING:
crates/goose/src/agents/extension_manager.rs:935:10: warning: the `Err`-variant returned from this function is very large
#      |
#  935 |     ) -> ExtensionResult<()> {
#      |          ^^^^^^^^^^^^^^^^^^^
#      |
#     ::: crates/goose/src/agents/extension.rs:53:5
#      |
#   53 |     InitializeError(#[from] ClientInitializeError),
#      |     ---------------------------------------------- the variant `InitializeError` contains at least 856 bytes
#   54 |     #[error("{0}")]
#   55 |     ProcessExit(#[from] ProcessExit),
#      |     -------------------------------- the largest variant contains at least 880 bytes
#      |
#      = help: try reducing the size of `agents::extension::ExtensionError`, for example by boxing large elements or replacing it with `Box<agents::extension::ExtensionError>`
#      = help: for further information visit https://rust-lang.github.io/rust-clippy/rust-1.98.0/index.html#result_large_err

Error: CLIPPY_WARNING:
crates/goose/src/agents/extension_manager.rs:1225:57: warning: the `Err`-variant returned from this function is very large
#       |
#  1225 |     pub async fn remove_extension(&self, name: &str) -> ExtensionResult<()> {
#       |                                                         ^^^^^^^^^^^^^^^^^^^
#       |
#      ::: crates/goose/src/agents/extension.rs:53:5
#       |
#    53 |     InitializeError(#[from] ClientInitializeError),
#       |     ---------------------------------------------- the variant `InitializeError` contains at least 856 bytes
#    54 |     #[error("{0}")]
#    55 |     ProcessExit(#[from] ProcessExit),
#       |     -------------------------------- the largest variant contains at least 880 bytes
#       |
#       = help: try reducing the size of `agents::extension::ExtensionError`, for example by boxing large elements or replacing it with `Box<agents::extension::ExtensionError>`
#       = help: for further information visit https://rust-lang.github.io/rust-clippy/rust-1.98.0/index.html#result_large_err

Error: CLIPPY_WARNING:
crates/goose/src/agents/extension_manager.rs:1253:44: warning: the `Err`-variant returned from this function is very large
#       |
#  1253 |     pub async fn list_extensions(&self) -> ExtensionResult<Vec<String>> {
#       |                                            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
#       |
#      ::: crates/goose/src/agents/extension.rs:53:5
#       |
#    53 |     InitializeError(#[from] ClientInitializeError),
#       |     ---------------------------------------------- the variant `InitializeError` contains at least 856 bytes
#    54 |     #[error("{0}")]
#    55 |     ProcessExit(#[from] ProcessExit),
#       |     -------------------------------- the largest variant contains at least 880 bytes
#       |
#       = help: try reducing the size of `agents::extension::ExtensionError`, for example by boxing large elements or replacing it with `Box<agents::extension::ExtensionError>`
#       = help: for further information visit https://rust-lang.github.io/rust-clippy/rust-1.98.0/index.html#result_large_err

Error: CLIPPY_WARNING:
crates/goose/src/agents/extension_manager.rs:1276:10: warning: the `Err`-variant returned from this function is very large
#       |
#  1276 |     ) -> ExtensionResult<Vec<Tool>> {
#       |          ^^^^^^^^^^^^^^^^^^^^^^^^^^
#       |
#      ::: crates/goose/src/agents/extension.rs:53:5
#       |
#    53 |     InitializeError(#[from] ClientInitializeError),
#       |     ---------------------------------------------- the variant `InitializeError` contains at least 856 bytes
#    54 |     #[error("{0}")]
#    55 |     ProcessExit(#[from] ProcessExit),
#       |     -------------------------------- the largest variant contains at least 880 bytes
#       |
#       = help: try reducing the size of `agents::extension::ExtensionError`, for example by boxing large elements or replacing it with `Box<agents::extension::ExtensionError>`
#       = help: for further information visit https://rust-lang.github.io/rust-clippy/rust-1.98.0/index.html#result_large_err

Error: CLIPPY_WARNING:
crates/goose/src/agents/extension_manager.rs:1285:10: warning: the `Err`-variant returned from this function is very large
#       |
#  1285 |     ) -> ExtensionResult<Vec<Tool>> {
#       |          ^^^^^^^^^^^^^^^^^^^^^^^^^^
#       |
#      ::: crates/goose/src/agents/extension.rs:53:5
#       |
#    53 |     InitializeError(#[from] ClientInitializeError),
#       |     ---------------------------------------------- the variant `InitializeError` contains at least 856 bytes
#    54 |     #[error("{0}")]
#    55 |     ProcessExit(#[from] ProcessExit),
#       |     -------------------------------- the largest variant contains at least 880 bytes
#       |
#       = help: try reducing the size of `agents::extension::ExtensionError`, for example by boxing large elements or replacing it with `Box<agents::extension::ExtensionError>`
#       = help: for further information visit https://rust-lang.github.io/rust-clippy/rust-1.98.0/index.html#result_large_err

Error: CLIPPY_WARNING:
crates/goose/src/agents/extension_manager.rs:1322:63: warning: the `Err`-variant returned from this function is very large
#       |
#  1322 |     async fn get_all_tools_cached(&self, session_id: &str) -> ExtensionResult<Arc<Vec<Tool>>> {
#       |                                                               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
#       |
#      ::: crates/goose/src/agents/extension.rs:53:5
#       |
#    53 |     InitializeError(#[from] ClientInitializeError),
#       |     ---------------------------------------------- the variant `InitializeError` contains at least 856 bytes
#    54 |     #[error("{0}")]
#    55 |     ProcessExit(#[from] ProcessExit),
#       |     -------------------------------- the largest variant contains at least 880 bytes
#       |
#       = help: try reducing the size of `agents::extension::ExtensionError`, for example by boxing large elements or replacing it with `Box<agents::extension::ExtensionError>`
#       = help: for further information visit https://rust-lang.github.io/rust-clippy/rust-1.98.0/index.html#result_large_err

Error: CLIPPY_WARNING:
crates/goose/src/agents/extension_manager.rs:1391:58: warning: the `Err`-variant returned from this function is very large
#       |
#  1391 |     async fn fetch_all_tools(&self, session_id: &str) -> ExtensionResult<Vec<Tool>> {
#       |                                                          ^^^^^^^^^^^^^^^^^^^^^^^^^^
#       |
#      ::: crates/goose/src/agents/extension.rs:53:5
#       |
#    53 |     InitializeError(#[from] ClientInitializeError),
#       |     ---------------------------------------------- the variant `InitializeError` contains at least 856 bytes
#    54 |     #[error("{0}")]
#    55 |     ProcessExit(#[from] ProcessExit),
#       |     -------------------------------- the largest variant contains at least 880 bytes
#       |
#       = help: try reducing the size of `agents::extension::ExtensionError`, for example by boxing large elements or replacing it with `Box<agents::extension::ExtensionError>`
#       = help: for further information visit https://rust-lang.github.io/rust-clippy/rust-1.98.0/index.html#result_large_err

Error: CLIPPY_WARNING:
crates/goose/src/agents/mcp_client.rs:604:10: warning: the `Err`-variant returned from this function is very large
#      |
#  604 |     ) -> Result<Self, ClientInitializeError>
#      |          ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the `Err`-variant is at least 856 bytes
#      |
#      = help: try reducing the size of `rmcp::service::ClientInitializeError`, for example by boxing large elements or replacing it with `Box<rmcp::service::ClientInitializeError>`
#      = help: for further information visit https://rust-lang.github.io/rust-clippy/rust-1.98.0/index.html#result_large_err

Error: CLIPPY_WARNING:
crates/goose/src/providers/githubcopilot.rs:346:71: warning: redundant reference in `format!` argument
#      |
#  346 |             .header(http::header::AUTHORIZATION, format!("bearer {}", &token))
#      |                                                                       ^^^^^^ help: remove the redundant `&`: `token`
#      |
#      = help: for further information visit https://rust-lang.github.io/rust-clippy/rust-1.98.0/index.html#useless_borrows_in_formatting
#      = note: `#[warn(clippy::useless_borrows_in_formatting)]` on by default