refactor: comment out unused code in line
All checks were successful
Test / test (push) Successful in 7s

It will probably be uncommented again soon.
This commit is contained in:
Paul Campbell 2024-09-19 12:28:13 +01:00
parent 61351ba07a
commit 92811bc074

View file

@ -1,7 +1,7 @@
//
#![allow(dead_code)]
use std::path::{Path, PathBuf};
use std::path::PathBuf;
use anyhow::{Context, Result};
use bon::Builder;
@ -18,15 +18,15 @@ pub struct Line {
value: String,
}
impl Line {
pub fn file(&self) -> &Path {
&self.file
}
pub fn num(&self) -> usize {
self.num
}
pub fn value(&self) -> &str {
&self.value
}
// pub fn file(&self) -> &Path {
// &self.file
// }
// pub fn num(&self) -> usize {
// self.num
// }
// pub fn value(&self) -> &str {
// &self.value
// }
pub fn into_marker(self) -> Result<Marker> {
if marker_pattern()?.find(&self.value).is_some() {