aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/main.rs8
1 files changed, 3 insertions, 5 deletions
diff --git a/src/main.rs b/src/main.rs
index 2287575..c56ffb3 100644
--- a/src/main.rs
+++ b/src/main.rs
@@ -47,7 +47,7 @@ struct Mark {
name: String,
alternative_names: Vec<String>,
symbols: Vec<String>,
- links: Vec<BTreeMap<String, String>>,
+ links: BTreeMap<String, String>,
}
struct Primstav {
@@ -70,10 +70,8 @@ fn print_entry(m: &Mark) {
if !m.links.is_empty() {
println!("Kilder:");
- for l in &m.links {
- for (source, url) in l.iter() {
- println!(" {}: {}", source, url);
- }
+ for (source, url) in m.links.iter() {
+ println!(" {}: {}", source, url);
}
}
}