From 2bc733b9aa0c70cbd42721b6e898c831c66aa927 Mon Sep 17 00:00:00 2001 From: Alexander Date: Tue, 26 Apr 2022 13:50:19 +0300 Subject: update tests --- src/reader.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/reader.rs') diff --git a/src/reader.rs b/src/reader.rs index 593fda5..ce08ece 100644 --- a/src/reader.rs +++ b/src/reader.rs @@ -11,7 +11,7 @@ pub struct BufferReader { impl BufferReader{ - fn new(file_path:&str) -> std::io::Result{ + pub fn new(file_path:&str) -> std::io::Result{ let file = File::open(Path::new(file_path))?; //add file validator @@ -23,7 +23,7 @@ impl BufferReader{ } - fn read_line <'a>(&mut self,buf:&'a mut String) -> Option>{ + pub fn read_line <'a>(&mut self,buf:&'a mut String) -> Option>{ //to avoid allocation for each new line buf.clear(); -- cgit 1.4.1