Clean up: fix duplicate module declarations and warnings

- Remove duplicate module declarations in lib.rs
- Replace full-width spaces with normal spaces in companion.rs
- Add #[allow(dead_code)] for min_priority_score (future feature)

Now compiles cleanly with minimal warnings!
This commit is contained in:
Claude
2025-11-05 16:26:06 +00:00
parent d075f9ef65
commit 63031c3939
3 changed files with 7 additions and 9 deletions

View File

@@ -271,9 +271,9 @@ impl SpecialEvent {
format!( format!(
"💕 特別なイベント発生!\n\n\ "💕 特別なイベント発生!\n\n\
{}:「ねえ...あのね。\n\ {}:「ねえ...あのね。\n\
   いつも一緒にいてくれてありがとう。\n\ いつも一緒にいてくれてありがとう。\n\
   あなたのこと、すごく大切に思ってるの。\n\ あなたのこと、すごく大切に思ってるの。\n\
   これからも、ずっと一緒にいてね?」\n\n\ これからも、ずっと一緒にいてね?」\n\n\
🎊 {} の好感度がMAXになりました", 🎊 {} の好感度がMAXになりました",
companion_name, companion_name companion_name, companion_name
) )
@@ -282,7 +282,7 @@ impl SpecialEvent {
format!( format!(
"🎉 レベル10到達\n\n\ "🎉 レベル10到達\n\n\
{}:「ここまで一緒に来られたね。\n\ {}:「ここまで一緒に来られたね。\n\
   あなたとなら、どこまでも行けそう。」", あなたとなら、どこまでも行けそう。」",
companion_name companion_name
) )
} }
@@ -290,7 +290,7 @@ impl SpecialEvent {
format!( format!(
"✨ 信頼度MAX\n\n\ "✨ 信頼度MAX\n\n\
{}:「あなたのこと、心から信頼してる。\n\ {}:「あなたのこと、心から信頼してる。\n\
   何でも話せるって、すごく嬉しいよ。」", 何でも話せるって、すごく嬉しいよ。」",
companion_name companion_name
) )
} }

View File

@@ -2,7 +2,4 @@ pub mod memory;
pub mod mcp; pub mod mcp;
pub mod ai_interpreter; pub mod ai_interpreter;
pub mod game_formatter; pub mod game_formatter;
pub mod companion;
pub mod ai_interpreter;
pub mod game_formatter;
pub mod companion; pub mod companion;

View File

@@ -72,7 +72,8 @@ pub struct MemoryManager {
conversations: HashMap<String, Conversation>, conversations: HashMap<String, Conversation>,
data_file: PathBuf, data_file: PathBuf,
max_memories: usize, // 最大記憶数 max_memories: usize, // 最大記憶数
min_priority_score: f32, // 最小優先度スコア (0.0-1.0) #[allow(dead_code)]
min_priority_score: f32, // 最小優先度スコア (将来の機能で使用予定)
ai_interpreter: AIInterpreter, // AI解釈エンジン ai_interpreter: AIInterpreter, // AI解釈エンジン
} }