-
Notifications
You must be signed in to change notification settings - Fork 32
Description
``benny@267666-1-1:~/creature$ cargo build --release
warning: unused variable: recent_thoughts_context
--> src/api/openrouter.rs:539:13
|
539 | let recent_thoughts_context = if !recent_thoughts.is_empty() {
| ^^^^^^^^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_recent_thoughts_context`
|
= note: `#[warn(unused_variables)]` on by default
warning: unused variable: r2
--> src/main.rs:44:9
|
44 | let r2 = running.clone();
| ^^ help: if this is intentional, prefix it with an underscore: _r2
warning: unused variable: init_rx
--> src/main.rs:189:19
|
189 | let (init_tx, init_rx) = mpsc::channel::(100);
| ^^^^^^^ help: if this is intentional, prefix it with an underscore: _init_rx
warning: variants LockError, ApiError, and ParseError are never constructed
--> src/api/openrouter.rs:38:5
|
37 | pub enum ClientError {
| ----------- variants in this enum
38 | LockError(String),
| ^^^^^^^^^
39 | ApiError(String),
| ^^^^^^^^
40 | ParseError(String),
| ^^^^^^^^^^
|
= note: ClientError has a derived impl for the trait Debug, but this is intentionally ignored during dead code analysis
= note: #[warn(dead_code)] on by default
warning: field context is never read
--> src/api/openrouter.rs:56:5
|
55 | struct CachedContext {
| ------------- field in this struct
56 | context: RealTimeContext,
| ^^^^^^^
warning: associated items estimate_tokens, compress_knowledge, and initialize_knowledge_base are never used
--> src/api/openrouter.rs:106:8
|
85 | impl OpenRouterClient {
| --------------------- associated items in this implementation
...
106 | fn estimate_tokens(text: &str) -> usize {
| ^^^^^^^^^^^^^^^
...
1272 | async fn compress_knowledge(
| ^^^^^^^^^^^^^^^^^^
...
1326 | pub async fn initialize_knowledge_base(&self) -> Result<(), Box> {
| ^^^^^^^^^^^^^^^^^^^^^^^^^
warning: constant MAX_TOKENS_CLAUDE is never used
--> src/models/constants.rs:23:11
|
23 | pub const MAX_TOKENS_CLAUDE: usize = 8096;
| ^^^^^^^^^^^^^^^^^
warning: constant MAX_TOKENS_GEMINI is never used
--> src/models/constants.rs:24:11
|
24 | pub const MAX_TOKENS_GEMINI: usize = 8096;
| ^^^^^^^^^^^^^^^^^
warning: constant MAX_PROMPT_TOKENS is never used
--> src/models/constants.rs:25:11
|
25 | pub const MAX_PROMPT_TOKENS: usize = 6072; // Reserve 1024 for response
| ^^^^^^^^^^^^^^^^^
warning: constant TOKEN_PADDING is never used
--> src/models/constants.rs:26:11
|
26 | pub const TOKEN_PADDING: usize = 50; // Safety margin
| ^^^^^^^^^^^^^
warning: fields last_updated and source_files are never read
--> src/models/knowledge.rs:18:9
|
16 | pub struct KnowledgeBase {
| ------------- fields in this struct
17 | pub compressed_content: String,
18 | pub last_updated: DateTime,
| ^^^^^^^^^^^^
19 | pub source_files: Vec,
| ^^^^^^^^^^^^
|
= note: KnowledgeBase has derived impls for the traits Debug and Clone, but these are intentionally ignored during dead code analysis
warning: associated functions new and load_files are never used
--> src/models/knowledge.rs:23:12
|
22 | impl KnowledgeBase {
| ------------------ associated functions in this implementation
23 | pub fn new() -> Self {
| ^^^
...
31 | pub fn load_files(path: &str) -> Result<Vec<(String, String)>, std::io::Error> {
| ^^^^^^^^^^
warning: fields research_depth, enhanced_state, neighborhood, influence_radius, and mutation_rate are never read
--> src/systems/cell.rs:36:9
|
23 | pub struct Cell {
| ---- fields in this struct
...
36 | pub research_depth: u32,
| ^^^^^^^^^^^^^^
37 | pub enhanced_state: EnhancedCellState,
| ^^^^^^^^^^^^^^
38 | pub neighborhood: ExtendedNeighborhood,
| ^^^^^^^^^^^^
...
41 | pub influence_radius: f64,
| ^^^^^^^^^^^^^^^^
42 | pub mutation_rate: f64,
| ^^^^^^^^^^^^^
|
= note: Cell has a derived impl for the trait Clone, but this is intentionally ignored during dead code analysis
warning: methods update_with_ltl_rules, should_generate_thought, calculate_interaction_effects, process_interaction_effects, and log_current_plan are never used
--> src/systems/cell.rs:87:18
|
50 | impl Cell {
| --------- methods in this implementation
...
87 | pub async fn update_with_ltl_rules(
| ^^^^^^^^^^^^^^^^^^^^^
...
114 | fn should_generate_thought(&self) -> bool {
| ^^^^^^^^^^^^^^^^^^^^^^^
...
120 | fn calculate_interaction_effects(&self, neighbor_states: &HashMap<Uuid, EnhancedCellState>) -> Vec {
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
...
150 | fn process_interaction_effects(&mut self, effects: Vec) {
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^
...
429 | pub fn log_current_plan(&self) {
| ^^^^^^^^^^^^^^^^
warning: methods print_memory_statistics, get_cell_batch, update_cell_batch, and process_cell_thoughts are never used
--> src/systems/colony.rs:764:12
|
32 | impl Colony {
| ----------- methods in this implementation
...
764 | pub fn print_memory_statistics(&self) {
| ^^^^^^^^^^^^^^^^^^^^^^^
...
1292 | pub fn get_cell_batch(&self, cell_ids: &[Uuid]) -> Vec {
| ^^^^^^^^^^^^^^
...
1299 | pub fn update_cell_batch(&mut self, updated_cells: Vec) {
| ^^^^^^^^^^^^^^^^^
...
1305 | pub async fn process_cell_thoughts(&mut self, cell_id: Uuid) -> Result<(), Box> {
| ^^^^^^^^^^^^^^^^^^^^^
warning: fields neighbors, radius, and max_neighbors are never read
--> src/systems/ltl.rs:17:9
|
16 | pub struct ExtendedNeighborhood {
| -------------------- fields in this struct
17 | pub neighbors: HashMap<Uuid, (f64, f64)>, // (distance, influence_weight)
| ^^^^^^^^^
18 | pub radius: f64,
| ^^^^^^
19 | pub max_neighbors: usize,
| ^^^^^^^^^^^^^
|
= note: ExtendedNeighborhood has a derived impl for the trait Clone, but this is intentionally ignored during dead code analysis
warning: methods calculate_influence and update_neighbors are never used
--> src/systems/ltl.rs:31:12
|
22 | impl ExtendedNeighborhood {
| ------------------------- methods in this implementation
...
31 | pub fn calculate_influence(&self, distance: f64, source_phase: f64, target_phase: f64) -> f64 {
| ^^^^^^^^^^^^^^^^^^^
...
37 | pub fn update_neighbors(&mut self, cell_position: &Coordinates, other_cells: &[(Uuid, Coordinates)]) {
| ^^^^^^^^^^^^^^^^
warning: multiple fields are never read
--> src/systems/ltl.rs:60:9
|
59 | pub struct EnhancedCellState {
| ----------------- fields in this struct
60 | pub energy: f64,
| ^^^^^^
61 | pub activity_level: f64,
| ^^^^^^^^^^^^^^
62 | pub stability: f64,
| ^^^^^^^^^
63 | pub phase: f64,
| ^^^^^
64 | pub phase_velocity: f64,
| ^^^^^^^^^^^^^^
65 | pub coupling_strength: f64,
| ^^^^^^^^^^^^^^^^^
66 | pub adaptation_rate: f64,
| ^^^^^^^^^^^^^^^
|
= note: EnhancedCellState has a derived impl for the trait Clone, but this is intentionally ignored during dead code analysis
warning: method calculate_phase_coupling is never used
--> src/systems/ltl.rs:70:12
|
69 | impl EnhancedCellState {
| ---------------------- method in this implementation
70 | pub fn calculate_phase_coupling(&mut self, neighbor_phases: &[f64], weights: &[f64]) {
| ^^^^^^^^^^^^^^^^^^^^^^^^
warning: methods update and calculate_stability are never used
--> src/systems/ltl.rs:103:12
|
90 | impl EnhancedCellState {
| ---------------------- methods in this implementation
...
103 | pub fn update(&mut self, neighborhood: &ExtendedNeighborhood, neighbor_states: &HashMap<Uuid, EnhancedCellState>) {
| ^^^^^^
...
124 | fn calculate_stability(&self, neighborhood: &ExtendedNeighborhood, neighbor_states: &HashMap<Uuid, EnhancedCellState>) -> f64 {
| ^^^^^^^^^^^^^^^^^^^
warning: enum InteractionEffect is never used
--> src/systems/ltl.rs:145:10
|
145 | pub enum InteractionEffect {
| ^^^^^^^^^^^^^^^^^
|
= note: InteractionEffect has a derived impl for the trait Debug, but this is intentionally ignored during dead code analysis
warning: function calculate_3d_distance is never used
--> src/systems/ltl.rs:151:8
|
151 | pub fn calculate_3d_distance(a: &Coordinates, b: &Coordinates) -> f64 {
| ^^^^^^^^^^^^^^^^^^^^^
warning: associated items new, analyze_coherence, calculate_local_coherence, analyze_phase_space, and detect_attractor are never used
--> src/systems/quantum.rs:59:12
|
58 | impl QuantumState {
| ----------------- associated items in this implementation
59 | pub fn new(dimension: usize) -> Self {
| ^^^
...
78 | pub fn analyze_coherence(&mut self) {
| ^^^^^^^^^^^^^^^^^
...
104 | fn calculate_local_coherence(&self, w: usize, z: usize, y: usize, x: usize) -> f64 {
| ^^^^^^^^^^^^^^^^^^^^^^^^^
...
131 | pub fn analyze_phase_space(&mut self) {
| ^^^^^^^^^^^^^^^^^^^
...
148 | fn detect_attractor(&self, slice: &ndarray::ArrayView2) -> Option {
| ^^^^^^^^^^^^^^^^
warning: multiple fields are never read
--> src/systems/lenia.rs:16:9
|
15 | pub struct LeniaParams {
| ----------- fields in this struct
16 | pub kernel_radius: f64,
| ^^^^^^^^^^^^^
17 | pub kernel_sigma: f64,
| ^^^^^^^^^^^^
18 | pub growth_mu: f64,
| ^^^^^^^^^
19 | pub growth_sigma: f64,
| ^^^^^^^^^^^^
20 | pub time_step: f64,
| ^^^^^^^^^
21 | pub grid_size: usize,
| ^^^^^^^^^
22 | pub dt: f64,
| ^^
|
= note: LeniaParams has derived impls for the traits Debug and Clone, but these are intentionally ignored during dead code analysis
warning: struct LeniaWorld is never constructed
--> src/systems/lenia.rs:40:12
|
40 | pub struct LeniaWorld {
| ^^^^^^^^^^
|
= note: LeniaWorld has a derived impl for the trait Clone, but this is intentionally ignored during dead code analysis
warning: associated items new, create_kernel, growth_function, step, add_pattern, and get_state_at are never used
--> src/systems/lenia.rs:47:12
|
46 | impl LeniaWorld {
| --------------- associated items in this implementation
47 | pub fn new(params: LeniaParams) -> Self {
| ^^^
...
59 | fn create_kernel(params: &LeniaParams) -> Array3 {
| ^^^^^^^^^^^^^
...
86 | fn growth_function(&self, u: f64) -> f64 {
| ^^^^^^^^^^^^^^^
...
91 | pub fn step(&mut self) {
| ^^^^
...
125 | pub fn add_pattern(&mut self, pattern: &Array3, position: &Coordinates) {
| ^^^^^^^^^^^
...
143 | pub fn get_state_at(&self, position: &Coordinates) -> f64 {
| ^^^^^^^^^^^^
warning: function update_stats_line is never used
--> src/utils/logging.rs:18:8
|
18 | pub fn update_stats_line(stats: &str, mission: Option<&str>) {
| ^^^^^^^^^^^^^^^^^
warning: function log_header is never used
--> src/utils/logging.rs:72:8
|
72 | pub fn log_header(title: &str) {
| ^^^^^^^^^^
warning: function log_section is never used
--> src/utils/logging.rs:79:8
|
79 | pub fn log_section(title: &str) {
| ^^^^^^^^^^^
warning: function log_detail is never used
--> src/utils/logging.rs:91:8
|
91 | pub fn log_detail(message: &str) {
| ^^^^^^^^^^
warning: function log_footer is never used
--> src/utils/logging.rs:118:8
|
118 | pub fn log_footer() {
| ^^^^^^^^^^
warning: function log_section_header is never used
--> src/utils/logging.rs:134:8
|
134 | pub fn log_section_header(title: &str) {
| ^^^^^^^^^^^^^^^^^^
warning: function log_section_footer is never used
--> src/utils/logging.rs:140:8
|
140 | pub fn log_section_footer() {
| ^^^^^^^^^^^^^^^^^^
warning: function log_dimensional_metric is never used
--> src/utils/logging.rs:167:8
|
167 | pub fn log_dimensional_metric(label: &str, value: f64, percentage: f64) {
| ^^^^^^^^^^^^^^^^^^^^^^
warning: function log_simple_metric is never used
--> src/utils/logging.rs:175:8
|
175 | pub fn log_simple_metric(label: &str, value: impl std::fmt::Display) {
| ^^^^^^^^^^^^^^^^^
warning: function update_thinking_animation is never used
--> src/utils/animations.rs:91:14
|
91 | pub async fn update_thinking_animation(frame: usize) {
| ^^^^^^^^^^^^^^^^^^^^^^^^^
warning: function list_templates is never used
--> src/utils/ascii_art.rs:86:8
|
86 | pub fn list_templates() -> Vec<&'static str> {
| ^^^^^^^^^^^^^^
warning: creature (bin "creature") generated 37 warnings