Switch to split inclusive instead of manually-implemented full lines iterator.
This commit is contained in:
@@ -1,6 +1,5 @@
|
||||
use crate::error::CustomError;
|
||||
|
||||
use super::full_lines_iterator::GetFullLines;
|
||||
use super::registry::Registry;
|
||||
|
||||
#[derive(Debug)]
|
||||
@@ -15,7 +14,7 @@ impl ISrcBlock {
|
||||
) -> Result<ISrcBlock, CustomError> {
|
||||
let lines = original
|
||||
.contents
|
||||
.full_lines()
|
||||
.split_inclusive('\n')
|
||||
.map(|s| s.to_owned())
|
||||
.collect();
|
||||
Ok(ISrcBlock { lines })
|
||||
|
||||
Reference in New Issue
Block a user