Skip to content

Commit

Permalink
Fixed warnings about unused_imports. Some of them do get used, by tes…
Browse files Browse the repository at this point in the history
…ts, ARC, wasm. So I'm not going to remove them. They are still useful functions.
  • Loading branch information
neoneye committed Jan 3, 2024
1 parent 572446f commit c6ae54a
Show file tree
Hide file tree
Showing 6 changed files with 28 additions and 2 deletions.
2 changes: 1 addition & 1 deletion rust_project/Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion rust_project/loda-rust-cli/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "loda-rust-cli"
version = "2024.1.3"
version = "2024.1.4"
authors = ["Simon Strandgaard <neoneye@gmail.com>"]
description = "Command line interface for LODA Rust"
repository = "https://github.com/loda-lang/loda-rust"
Expand Down
4 changes: 4 additions & 0 deletions rust_project/loda-rust-cli/src/common/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,13 @@ mod record_unigram;
mod simple_log;

pub use create_csv_file::create_csv_file;

#[allow(unused_imports)]
pub use find_files_recursively::{find_asm_files_recursively, find_csv_files_recursively, find_json_files_recursively};
pub use mine_event_directory_scan::MineEventDirectoryScan;
pub use oeis_ids_from_paths::{oeis_id_from_path, oeis_ids_from_paths};

#[allow(unused_imports)]
pub use oeis_ids_from_programs::{oeis_ids_from_program_string, oeis_ids_from_program, oeis_ids_from_programs};
pub use oeis_ids_sorted::ToOeisIdVec;
pub use oeis_id_string_map::OeisIdStringMap;
Expand Down
2 changes: 2 additions & 0 deletions rust_project/loda-rust-cli/src/config/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@ mod config;
mod number_of_workers;
mod validate_config;

#[allow(unused_imports)]
pub use config::{config_from_toml_content, Config, MinerCPUStrategy, MinerFilterMode};

pub use number_of_workers::NumberOfWorkers;
pub use validate_config::{ValidateConfigTask, ValidateConfig};
8 changes: 8 additions & 0 deletions rust_project/loda-rust-cli/src/mine/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -42,10 +42,14 @@ pub use coordinator_worker::{coordinator_worker, CoordinatorWorkerMessage, Coord
pub use create_funnel::CreateFunnel;
pub use create_genome_mutate_context::{CreateGenomeMutateContextMode, create_genome_mutate_context};
pub use create_prevent_flooding::create_prevent_flooding;

#[allow(unused_imports)]
pub use cronjob_worker::{cronjob_worker, CronjobWorkerMessage};
pub use funnel::Funnel;
pub use funnel_config::FunnelConfig;
pub use genome_mutate_context::{GenomeMutateContext, GenomeMutateContextBuilder};

#[allow(unused_imports)]
pub use genome::{Genome, MutateGenome};
pub use genome_item::{GenomeItem, MutateEvalSequenceCategory, ToGenomeItem, ToGenomeItemVec};
pub use histogram_instruction_constant::HistogramInstructionConstant;
Expand All @@ -54,11 +58,15 @@ pub use metrics_prometheus::MetricsPrometheus;
pub use metrics_worker::MetricsWorker;
pub use mine_event_directory_state::MineEventDirectoryState;
pub use miner_sync_execute::{MinerSyncExecute, MinerSyncExecuteStatus};

#[allow(unused_imports)]
pub use miner_worker::{miner_worker, MinerWorkerMessage, MinerWorkerMessageWithAnalytics, MinerWorkerQuestion};
pub use moving_average::MovingAverage;
pub use performance_classifier::{PerformanceClassifier, PerformanceClassifierResult};
pub use popular_program_container::PopularProgramContainer;
pub use postmine_worker::{postmine_worker, PostmineWorkerMessage};

#[allow(unused_imports)]
pub use prevent_flooding::{PreventFlooding, PreventFloodingError};
pub use random_indexes_with_distance::random_indexes_with_distance;
pub use recent_program_container::RecentProgramContainer;
Expand Down
12 changes: 12 additions & 0 deletions rust_project/loda-rust-cli/src/postmine/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -19,13 +19,22 @@ mod terms_from_programs;
mod validate_single_program;

pub use batch_lookup_names::batch_lookup_names;

#[allow(unused_imports)]
pub use batch_lookup_terms::batch_lookup_terms;

pub use candidate_program::{CandidateProgram, State};
pub use compare_two_programs::{CompareTwoPrograms, CompareTwoProgramsResult, StatusOfExistingProgram};

#[allow(unused_imports)]
pub use filter_asm_files::filter_asm_files;

pub use find_postmine_directories::find_postmine_directories;
pub use format_program::FormatProgram;

#[allow(unused_imports)]
pub use git_absolute_paths_for_unstaged_files::git_absolute_paths_for_unstaged_files;

pub use mine_event_directory_maintenance::MineEventDirectoryMaintenance;
pub use parent_dir_and_child_file::ParentDirAndChildFile;
pub use path_for_oeis_program::path_for_oeis_program;
Expand All @@ -34,5 +43,8 @@ pub use postmine::PostMine;
pub use postmine_directory_maintenance::PostmineDirectoryMaintenance;
pub use postmine_error::PostMineError;
pub use program_serializer_context_with_sequence_name::ProgramSerializerContextWithSequenceName;

#[allow(unused_imports)]
pub use terms_from_programs::{PathTermsMap, terms_from_program, terms_from_programs};

pub use validate_single_program::ValidateSingleProgram;

0 comments on commit c6ae54a

Please sign in to comment.