summaryrefslogtreecommitdiffstats
path: root/src/todo_file/src/lib.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/todo_file/src/lib.rs')
-rw-r--r--src/todo_file/src/lib.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/todo_file/src/lib.rs b/src/todo_file/src/lib.rs
index dc7632e..a90fa9a 100644
--- a/src/todo_file/src/lib.rs
+++ b/src/todo_file/src/lib.rs
@@ -224,7 +224,7 @@ impl TodoFile {
None
}
else {
- Some(Line::new(l).map_err(|err| {
+ Some(Line::parse(l).map_err(|err| {
IoError::FileRead {
file: self.filepath.clone(),
cause: FileReadErrorCause::from(err),
@@ -492,7 +492,7 @@ mod tests {
use super::*;
fn create_line(line: &str) -> Line {
- Line::new(line).unwrap()
+ Line::parse(line).unwrap()
}
fn create_and_load_todo_file(file_contents: &[&str]) -> (TodoFile, NamedTempFile) {