use crate::entry::Entry;
use std::io::{self, Write};
pub fn write(w: &mut impl Write, entries: &[&Entry]) -> io::Result<()> {
for entry in entries {
let line = serde_json::to_string(entry).map_err(io::Error::other)?;
writeln!(w, "{}", line)?;
}
Ok(())
}