use crate::prelude::*; use atom_syndication::Link; use std::fs::OpenOptions; use std::io::prelude::*; pub fn add(link: &Link, file_name: &str) -> Result<()> { let mut file = OpenOptions::new() .write(true) .append(true) .create(true) .open(file_name) .unwrap(); writeln!(file, "{}", link.href)?; Ok(()) }