Skip to content

Commit 66e687b

Browse files
committed
refactor: get_source_files split match
1 parent 9cf2808 commit 66e687b

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

rewatch/src/build/packages.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -521,14 +521,14 @@ pub fn get_source_files(
521521
) -> AHashMap<PathBuf, SourceFileMeta> {
522522
let mut map: AHashMap<PathBuf, SourceFileMeta> = AHashMap::new();
523523

524-
let (recurse, type_) = match source {
524+
let recurse = match source {
525525
config::PackageSource {
526526
subdirs: Some(config::Subdirs::Recurse(subdirs)),
527-
type_,
528527
..
529-
} => (subdirs.to_owned(), type_),
530-
config::PackageSource { type_, .. } => (false, type_),
528+
} => *subdirs,
529+
_ => false,
531530
};
531+
let type_ = source.type_.clone();
532532

533533
let path_dir = Path::new(&source.dir);
534534
let is_type_dev = type_.as_ref().map(|t| t.as_str() == "dev").unwrap_or(false);

0 commit comments

Comments
 (0)