File tree Expand file tree Collapse file tree 2 files changed +7
-1
lines changed Expand file tree Collapse file tree 2 files changed +7
-1
lines changed Original file line number Diff line number Diff line change @@ -111,7 +111,7 @@ fn main() -> anyhow::Result<()> {
111
111
. overrides ( overrides)
112
112
. follow_links ( options. follow_links ) ;
113
113
114
- for root in directories. into_iter ( ) . skip ( 1 ) {
114
+ for root in directories. iter ( ) . skip ( 1 ) {
115
115
walker_builder. add ( root) ;
116
116
}
117
117
Original file line number Diff line number Diff line change
1
+ //! Context types for parsing.
2
+ //!
1
3
use std:: path:: PathBuf ;
2
4
3
5
use crate :: language:: CrateName ;
@@ -15,8 +17,12 @@ pub struct ParseContext<'a> {
15
17
16
18
/// Parsing context for a single rust source file.
17
19
pub struct ParseFileContext {
20
+ /// Source code content
18
21
pub source_code : String ,
22
+ /// Name of the crate this file belongs to.
19
23
pub crate_name : CrateName ,
24
+ /// File name.
20
25
pub file_name : String ,
26
+ /// Full path to the source file.
21
27
pub file_path : PathBuf ,
22
28
}
You can’t perform that action at this time.
0 commit comments