Skip to content

Commit 4505c5b

Browse files
Luni-4marco-c
authored andcommitted
Replace glob with rust-code-analysis objects
It is always better to state explicitly the objects used in the code. Sometimes the glob can arise problems in compilation.
1 parent 303e6b6 commit 4505c5b

1 file changed

Lines changed: 17 additions & 1 deletion

File tree

rust-code-analysis-cli/src/main.rs

Lines changed: 17 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,23 @@ use walkdir::{DirEntry, WalkDir};
2323

2424
use formats::Format;
2525

26-
use rust_code_analysis::*;
26+
// Enums
27+
use rust_code_analysis::LANG;
28+
29+
// Structs
30+
use rust_code_analysis::{
31+
CommentRm, CommentRmCfg, Count, CountCfg, Dump, DumpCfg, Find, FindCfg, Function, FunctionCfg,
32+
Metrics, MetricsCfg, PreprocParser, PreprocResults,
33+
};
34+
35+
// Functions
36+
use rust_code_analysis::{
37+
action, fix_includes, get_from_ext, get_function_spaces, guess_language, preprocess, read_file,
38+
read_file_with_eol, write_file,
39+
};
40+
41+
// Traits
42+
use rust_code_analysis::ParserTrait;
2743

2844
#[derive(Debug)]
2945
struct Config {

0 commit comments

Comments
 (0)