aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorHarald Eilertsen <haraldei@anduin.net>2018-12-26 16:14:35 +0100
committerHarald Eilertsen <haraldei@anduin.net>2018-12-26 22:34:39 +0100
commite2a449dfc70d6791918506013776600a5c5f86e6 (patch)
tree1d234ada6899f15381fd43a141f3dcdaa0eebf0e /src
parent74221431c58e89be796d176f4793a00dafc26e2d (diff)
downloadprimstav-e2a449dfc70d6791918506013776600a5c5f86e6.tar.gz
primstav-e2a449dfc70d6791918506013776600a5c5f86e6.tar.bz2
primstav-e2a449dfc70d6791918506013776600a5c5f86e6.zip
Change link representation again, make it a plain map.
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);
}
}
}