Skip to content

Commit ef9108b

Browse files
Update comments.
1 parent 8bf951e commit ef9108b

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

cli/src/main.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@ fn main() -> anyhow::Result<()> {
111111
.overrides(overrides)
112112
.follow_links(options.follow_links);
113113

114-
for root in directories.into_iter().skip(1) {
114+
for root in directories.iter().skip(1) {
115115
walker_builder.add(root);
116116
}
117117

core/src/context.rs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
//! Context types for parsing.
2+
//!
13
use std::path::PathBuf;
24

35
use crate::language::CrateName;
@@ -15,8 +17,12 @@ pub struct ParseContext<'a> {
1517

1618
/// Parsing context for a single rust source file.
1719
pub struct ParseFileContext {
20+
/// Source code content
1821
pub source_code: String,
22+
/// Name of the crate this file belongs to.
1923
pub crate_name: CrateName,
24+
/// File name.
2025
pub file_name: String,
26+
/// Full path to the source file.
2127
pub file_path: PathBuf,
2228
}

0 commit comments

Comments
 (0)