···199 // If the Gemtext line starts with an "=" ("=>"), it is a link line,
200 // so splitting it up should be easy enough.
201 let line = line.get(2..).unwrap_or("");
202- let mut split = line
203- .split_whitespace()
204- .map(String::from)
205- .collect::<Vec<String>>()
206- .into_iter();
207208 nodes.push(Node::Link {
209- to: split.next().unwrap_or_default(),
210 text: {
211- let rest = split.collect::<Vec<String>>().join(" ");
212213- if rest.is_empty() { None } else { Some(rest) }
214 },
215 });
216
···199 // If the Gemtext line starts with an "=" ("=>"), it is a link line,
200 // so splitting it up should be easy enough.
201 let line = line.get(2..).unwrap_or("");
202+ let mut split = line.split_whitespace();
0000203204 nodes.push(Node::Link {
205+ to: split.next().unwrap_or_default().to_string(),
206 text: {
207+ let rest: Vec<&str> = split.collect();
208209+ if rest.is_empty() { None } else { Some(rest.join(" ")) }
210 },
211 });
212