mirror of
https://github.com/github/codeql.git
synced 2025-12-16 16:53:25 +01:00
Update rust/extractor/src/main.rs
Co-authored-by: Simon Friis Vindum <simonfv@gmail.com>
This commit is contained in:
@@ -277,15 +277,10 @@ fn main() -> anyhow::Result<()> {
|
||||
} else {
|
||||
ResolvePaths::Yes
|
||||
};
|
||||
let library_mode = if cfg.extract_dependencies_as_source {
|
||||
SourceKind::Source
|
||||
let (library_mode, library_resolve_paths) = if cfg.extract_dependencies_as_source {
|
||||
(SourceKind::Source, resolve_paths)
|
||||
} else {
|
||||
SourceKind::Library
|
||||
};
|
||||
let library_resolve_paths = if cfg.extract_dependencies_as_source {
|
||||
resolve_paths
|
||||
} else {
|
||||
ResolvePaths::No
|
||||
(SourceKind::Library, ResolvePaths::No)
|
||||
};
|
||||
let mut processed_files: HashSet<PathBuf, RandomState> =
|
||||
HashSet::from_iter(files.iter().cloned());
|
||||
|
||||
Reference in New Issue
Block a user