I'm trying to read a pgp public key using the sequoia_openpgp but I get this error :/
fn main() -> io::Result<()> {
let mut reader = Reader::from_file("public.key",ReaderMode::Tolerant(Some(Kind::File)))?;
let mut data = String::new();
match reader.read_to_string(&mut data) {
Err(why) => panic!("Error: {}", why),
Ok(_) => print!("contains:\n\n{}", data),
}
Ok(())
}