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