Drop 49 allow(unused_imports) that no compiler warning needs (STRA-338)
The re-exports left by the mechanical module splits carried a blanket allow(unused_imports). 49 of them cover nothing: cargo check --all-targets on backend-api, control-plane, gateway-domain, gateway-text and libc-shim gives no new unused-import or glob-import warning without them. 39 others in those crates still silence a real warning and stay; the 8 in desktop-core (engine-host) could not be checked because that crate needs the engine, which does not build on Windows (STRA-390), and stay too.
This commit is contained in:
@@ -38,7 +38,6 @@ mod tests;
|
||||
mod state;
|
||||
pub use state::{AppState, EngineLink, HttpPolicy, ModelView, Services};
|
||||
mod routes;
|
||||
#[allow(unused_imports)]
|
||||
pub use routes::*;
|
||||
mod admin_routes;
|
||||
#[allow(unused_imports)]
|
||||
@@ -47,5 +46,4 @@ mod readiness;
|
||||
#[allow(unused_imports)]
|
||||
pub use readiness::*;
|
||||
mod metrics_document;
|
||||
#[allow(unused_imports)]
|
||||
pub use metrics_document::*;
|
||||
|
||||
@@ -98,8 +98,6 @@ mod tests;
|
||||
mod analyze;
|
||||
mod previous;
|
||||
mod sample;
|
||||
#[allow(unused_imports)]
|
||||
pub use analyze::*;
|
||||
mod sample_records;
|
||||
#[allow(unused_imports)]
|
||||
pub use sample_records::*;
|
||||
|
||||
@@ -103,13 +103,11 @@ mod tests;
|
||||
mod archive_entry_points;
|
||||
mod archive_file;
|
||||
mod archive_plan;
|
||||
#[allow(unused_imports)]
|
||||
pub use archive_entry_points::*;
|
||||
mod archive_write_steps;
|
||||
#[allow(unused_imports)]
|
||||
pub use archive_write_steps::*;
|
||||
mod nested_layout;
|
||||
#[allow(unused_imports)]
|
||||
pub use nested_layout::*;
|
||||
mod section_payload;
|
||||
#[allow(unused_imports)]
|
||||
|
||||
@@ -164,11 +164,9 @@ mod server;
|
||||
#[allow(unused_imports)]
|
||||
pub use server::*;
|
||||
mod tool_result_text;
|
||||
#[allow(unused_imports)]
|
||||
pub use tool_result_text::*;
|
||||
mod hub;
|
||||
#[allow(unused_imports)]
|
||||
pub use hub::*;
|
||||
mod parse_config;
|
||||
#[allow(unused_imports)]
|
||||
pub use parse_config::*;
|
||||
|
||||
@@ -30,10 +30,8 @@ struct Events(mpsc::Receiver<Event>);
|
||||
mod tests;
|
||||
|
||||
mod count_tokens;
|
||||
#[allow(unused_imports)]
|
||||
pub use count_tokens::*;
|
||||
mod error_type;
|
||||
#[allow(unused_imports)]
|
||||
pub use error_type::*;
|
||||
mod messages_stream;
|
||||
#[allow(unused_imports)]
|
||||
|
||||
@@ -44,7 +44,6 @@ pub struct ModelFile {
|
||||
mod tests;
|
||||
|
||||
mod manifest_fetch;
|
||||
#[allow(unused_imports)]
|
||||
pub use manifest_fetch::*;
|
||||
mod file_download;
|
||||
#[allow(unused_imports)]
|
||||
|
||||
@@ -82,10 +82,8 @@ mod dense_files;
|
||||
#[allow(unused_imports)]
|
||||
pub use dense_files::*;
|
||||
mod pack_publication;
|
||||
#[allow(unused_imports)]
|
||||
pub use pack_publication::*;
|
||||
mod pack_outputs;
|
||||
#[allow(unused_imports)]
|
||||
pub use pack_outputs::*;
|
||||
mod same_bytes;
|
||||
#[allow(unused_imports)]
|
||||
|
||||
@@ -79,10 +79,8 @@ struct StagingDir(PathBuf);
|
||||
mod tests;
|
||||
|
||||
mod preview_entry_points;
|
||||
#[allow(unused_imports)]
|
||||
pub use preview_entry_points::*;
|
||||
mod prepare_sharded;
|
||||
#[allow(unused_imports)]
|
||||
pub use prepare_sharded::*;
|
||||
mod streamed_sharded_prepare;
|
||||
#[allow(unused_imports)]
|
||||
@@ -94,7 +92,6 @@ mod prepare_single_file;
|
||||
#[allow(unused_imports)]
|
||||
pub use prepare_single_file::*;
|
||||
mod tensor_encoding;
|
||||
#[allow(unused_imports)]
|
||||
pub use tensor_encoding::*;
|
||||
mod derived_verification;
|
||||
#[allow(unused_imports)]
|
||||
|
||||
@@ -41,5 +41,4 @@ mod tests;
|
||||
mod series;
|
||||
use series::SERIES;
|
||||
mod render;
|
||||
#[allow(unused_imports)]
|
||||
pub use render::*;
|
||||
|
||||
@@ -168,10 +168,8 @@ impl Default for RequestMetrics {
|
||||
mod tests;
|
||||
|
||||
mod request_context;
|
||||
#[allow(unused_imports)]
|
||||
pub use request_context::*;
|
||||
mod observation;
|
||||
#[allow(unused_imports)]
|
||||
pub use observation::*;
|
||||
mod metrics_text;
|
||||
#[allow(unused_imports)]
|
||||
|
||||
@@ -99,5 +99,4 @@ mod record;
|
||||
#[allow(unused_imports)]
|
||||
pub use record::*;
|
||||
mod capture;
|
||||
#[allow(unused_imports)]
|
||||
pub use capture::*;
|
||||
|
||||
@@ -31,5 +31,4 @@ mod command_line;
|
||||
#[allow(unused_imports)]
|
||||
pub use command_line::*;
|
||||
mod control;
|
||||
#[allow(unused_imports)]
|
||||
pub use control::*;
|
||||
|
||||
@@ -191,7 +191,6 @@ mod switch_profiles;
|
||||
#[allow(unused_imports)]
|
||||
pub use switch_profiles::*;
|
||||
mod run;
|
||||
#[allow(unused_imports)]
|
||||
pub use run::*;
|
||||
mod reconcile;
|
||||
#[cfg(unix)]
|
||||
|
||||
@@ -21,50 +21,28 @@ pub use recent_ids::{DEFAULT_RECENT_IDS, RecentIds};
|
||||
mod tests;
|
||||
|
||||
mod backend_contract;
|
||||
#[allow(unused_imports)]
|
||||
pub use backend_contract::BACKEND_API_VERSION;
|
||||
#[allow(unused_imports)]
|
||||
pub use backend_contract::Backend;
|
||||
#[allow(unused_imports)]
|
||||
pub use backend_contract::BackendCapabilities;
|
||||
#[allow(unused_imports)]
|
||||
pub use backend_contract::BackendError;
|
||||
#[allow(unused_imports)]
|
||||
pub use backend_contract::BackendIdentity;
|
||||
#[allow(unused_imports)]
|
||||
pub use backend_contract::ContractError;
|
||||
#[allow(unused_imports)]
|
||||
pub use backend_contract::ErrorCode;
|
||||
#[allow(unused_imports)]
|
||||
pub use backend_contract::FinishReason;
|
||||
#[allow(unused_imports)]
|
||||
pub use backend_contract::GenerationEvent;
|
||||
#[allow(unused_imports)]
|
||||
pub use backend_contract::GenerationRequest;
|
||||
#[allow(unused_imports)]
|
||||
pub use backend_contract::GenerationSink;
|
||||
#[allow(unused_imports)]
|
||||
pub use backend_contract::GenerationTerminal;
|
||||
#[allow(unused_imports)]
|
||||
pub use backend_contract::LoadedModel;
|
||||
#[allow(unused_imports)]
|
||||
pub use backend_contract::MAX_OUTPUT_TOKENS;
|
||||
#[allow(unused_imports)]
|
||||
pub use backend_contract::ModelDescriptor;
|
||||
#[allow(unused_imports)]
|
||||
pub use backend_contract::RuntimeConfig;
|
||||
#[allow(unused_imports)]
|
||||
pub use backend_contract::SamplingOptions;
|
||||
#[allow(unused_imports)]
|
||||
pub use backend_contract::SupportedModelTuple;
|
||||
#[allow(unused_imports)]
|
||||
pub use backend_contract::Usage;
|
||||
mod generation_stream;
|
||||
#[allow(unused_imports)]
|
||||
use generation_stream::EventSender;
|
||||
#[allow(unused_imports)]
|
||||
pub use generation_stream::GenerationStream;
|
||||
#[allow(unused_imports)]
|
||||
pub use generation_stream::StreamError;
|
||||
|
||||
mod contract_rules;
|
||||
|
||||
@@ -79,8 +79,6 @@ pub struct Run {
|
||||
mod tests;
|
||||
|
||||
mod budget;
|
||||
#[allow(unused_imports)]
|
||||
pub use budget::*;
|
||||
mod generation_loop;
|
||||
#[allow(unused_imports)]
|
||||
pub use generation_loop::*;
|
||||
|
||||
@@ -126,10 +126,8 @@ mod notes;
|
||||
#[allow(unused_imports)]
|
||||
pub use notes::*;
|
||||
mod incremental;
|
||||
#[allow(unused_imports)]
|
||||
pub use incremental::*;
|
||||
mod parse_text;
|
||||
#[allow(unused_imports)]
|
||||
pub use parse_text::*;
|
||||
mod parse_call;
|
||||
#[allow(unused_imports)]
|
||||
|
||||
@@ -280,7 +280,6 @@ copy!(
|
||||
mod tests;
|
||||
|
||||
mod trace_state;
|
||||
#[allow(unused_imports)]
|
||||
pub use trace_state::*;
|
||||
mod launch_interposers;
|
||||
#[allow(unused_imports)]
|
||||
|
||||
Reference in New Issue
Block a user