Skip to content

Commit

Permalink
fix: output points to a file
Browse files Browse the repository at this point in the history
  • Loading branch information
supermaxiste committed Jun 24, 2024
1 parent 606a7a0 commit be3c2ac
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/io.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
use rio_turtle::NTriplesParser;
use crate::rules::Config;
use serde_yaml;
use serde_yml;


use std::{
boxed::Box,
Expand Down Expand Up @@ -35,7 +36,7 @@ pub fn parse_ntriples(reader: impl BufRead) -> NTriplesParser<impl BufRead> {
pub fn parse_config(path: &Path) -> Config {
return match File::open(&path) {
Ok(file) => {
serde_yaml::from_reader(file).unwrap()
serde_yml::from_reader(file).unwrap()
}
Err(e) => panic!("Cannot open file '{:?}': '{}'.", path, e),
};
Expand Down

0 comments on commit be3c2ac

Please sign in to comment.