fix(checks): wire error_buffer into test ServerConfigs + silence too-many-args #27
Loading…
Reference in a new issue
No description provided.
Delete branch "fix/server-tests-and-clippy"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Summary
Two strict-check failures on main after recent merges:
E0063 in test ServerConfig literals. VS-7 (PR #19) added
error_buffer: Option<ErrorBuffer>toServerConfigbut did not update the 6 ServerConfig literals incrates/meshcentral-web/tests/login.rsandtests/tls_smoke.rs.cargo check --workspace --all-targets(whichjust check-compileruns) failed.clippy too_many_arguments under -D warnings.
event_log::listwent from 7 -> 8 args when VS-8 added thetagfilter;user_session::handle_satellitewent from 7 -> 8 when VS-13 addedsession_guard. CI (.forgejo/workflows/check.yml) runscargo clippy --all-targets -- -D warningsso these warnings are blocking. Workspace already uses#[allow(clippy::too_many_arguments)]on functions whose argument set is intrinsic to the dispatch shape; this PR does the same here.Changes
tests/login.rs,tests/tls_smoke.rs:error_buffer: None,added afterdatapath: None,in every ServerConfig literal (6 sites).event_log::list,user_session::handle_satellite:#[allow(clippy::too_many_arguments)]attribute added.cargo fmt --allreformatting on a few touched files folded in.Test plan
cargo check --workspace --all-targetsclean.cargo clippy --all-targets -- -D warningsclean.cargo fmt --all --checkclean.just checkexits 0.