refactor: comment out unused code in line
All checks were successful
Test / test (push) Successful in 7s
All checks were successful
Test / test (push) Successful in 7s
It will probably be uncommented again soon.
This commit is contained in:
parent
61351ba07a
commit
92811bc074
1 changed files with 10 additions and 10 deletions
|
@ -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() {
|
||||||
|
|
Loading…
Reference in a new issue