Renames headproc to more descriptive headparse
This commit is contained in:
@@ -1,7 +1,7 @@
|
|||||||
use std::{env::{self}, io::Error, path::Path};
|
use std::{env::{self}, io::Error, path::Path};
|
||||||
use std::fs;
|
use std::fs;
|
||||||
|
|
||||||
pub mod headproc; // The HEAder PROCessing
|
pub mod headparse; // The HEAder parsing
|
||||||
|
|
||||||
/// Use for handling possible formats of the WFDB data
|
/// Use for handling possible formats of the WFDB data
|
||||||
#[derive(Debug, Clone, Copy)]
|
#[derive(Debug, Clone, Copy)]
|
||||||
@@ -32,7 +32,7 @@ fn main() -> Result<(), Error>{
|
|||||||
let hea_file_result = fs::read_to_string(filepath);
|
let hea_file_result = fs::read_to_string(filepath);
|
||||||
match hea_file_result {
|
match hea_file_result {
|
||||||
Ok(file_data) => {
|
Ok(file_data) => {
|
||||||
let header = headproc::parse_header(file_data.as_str());
|
let header = headparse::parse_header(file_data.as_str());
|
||||||
dbg!(header);
|
dbg!(header);
|
||||||
}
|
}
|
||||||
Err(e) => return Err(e)
|
Err(e) => return Err(e)
|
||||||
|
|||||||
Reference in New Issue
Block a user