summaryrefslogtreecommitdiff
path: root/src/md_generator.rs
diff options
context:
space:
mode:
authorA Farzat <a@farzat.xyz>2026-06-20 04:39:33 +0300
committerA Farzat <a@farzat.xyz>2026-06-20 10:49:38 +0300
commita658ae86ace40a00a8476a19f55aca3fe72abd8a (patch)
tree73a175bf10f7bedc7ab8db446e832137042fd358 /src/md_generator.rs
parent3bf55f98e743d4513f25f927a55f47b15561ad9e (diff)
downloadrepo2markdown-a658ae86ace40a00a8476a19f55aca3fe72abd8a.tar.gz
repo2markdown-a658ae86ace40a00a8476a19f55aca3fe72abd8a.zip
Rename NormalizedPath's relative field
root_relative provides better semantic clarity.
Diffstat (limited to 'src/md_generator.rs')
-rw-r--r--src/md_generator.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/md_generator.rs b/src/md_generator.rs
index 98ab22d..54b7cbb 100644
--- a/src/md_generator.rs
+++ b/src/md_generator.rs
@@ -41,10 +41,10 @@ pub fn generate_markdown_from_paths<R: Read, W: Write>(
let path = Path::new(OsStr::from_bytes(segment));
let normalized_path = normalizer.normalize(path)?;
- if !seen_paths.insert(normalized_path.relative.clone()) {
+ if !seen_paths.insert(normalized_path.clone()) {
logger.warn(format!(
"skipping duplicate file: {}",
- display_path(&normalized_path.relative)
+ display_path(&normalized_path.root_relative)
));
continue;
}