mirror of
https://github.com/fabro-sh/fabro.git
synced 2026-09-22 00:31:12 +00:00
The web-install feature was carrying nine pedantic-tier clippy errors from its initial commit. Fix them in place: - \`install.rs\` \`InstallAppState\` switches \`install_token\`, \`storage_dir\`, and \`config_path\` from \`Arc<String>/Arc<PathBuf>\` to \`Arc<str>/Arc<Path>\` so we stop heap-duplicating buffers. - Bring \`Infallible\`, \`axum::middleware\`, \`axum::extract::Request\`, and \`fabro_types::settings::SettingsLayer\` into scope instead of using absolute paths inline. - Replace \`Duration::from_secs(10 * 60)\` with \`Duration::from_mins(10)\`. - \`generate_ephemeral_secret\` never returns \`Err\`; drop the \`Result\`. - \`server/start.rs ensure_storage_server_autostart_allowed\` takes \`Option<&OsStr>\` instead of consuming an \`OsString\` it only reads. - \`server/mod.rs\` storage_dir fallback uses \`map_or_else\` to satisfy \`map_unwrap_or\`. CI now passes \`cargo +nightly-2026-04-14 clippy --workspace --all-targets -- -D warnings\` cleanly and the 892-test suite still passes. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com> |
||
|---|---|---|
| .. | ||
| commands | ||
| shared | ||
| sleep_inhibitor | ||
| args.rs | ||
| command_context.rs | ||
| gh.rs | ||
| landing.rs | ||
| logging.rs | ||
| main.rs | ||
| manifest_builder.rs | ||
| server_client.rs | ||
| server_runs.rs | ||
| sse.rs | ||
| user_config.rs | ||