mirror of
https://github.com/stefanoamorelli/crabrl.git
synced 2026-04-18 15:20:49 +00:00
fix: remove invalid fact iteration in parse example
- FactStorage doesn't convert to Vec directly - Simplified example to just show counts
This commit is contained in:
@@ -18,11 +18,5 @@ fn main() -> Result<(), Box<dyn std::error::Error>> {
|
||||
println!(" Contexts: {}", doc.contexts.len());
|
||||
println!(" Units: {}", doc.units.len());
|
||||
|
||||
// Show first 5 facts
|
||||
let facts_vec: Vec<_> = doc.facts.clone().into();
|
||||
for fact in facts_vec.iter().take(5) {
|
||||
println!(" - {}: {}", fact.name, fact.value);
|
||||
}
|
||||
|
||||
Ok(())
|
||||
}
|
||||
Reference in New Issue
Block a user