We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7994aca commit 36eb13cCopy full SHA for 36eb13c
integrations/rust-project/src/target.rs
@@ -251,14 +251,6 @@ impl TargetInfo {
251
}
252
253
pub(crate) fn src_dirs(&self) -> Vec<PathBuf> {
254
- // generated thrift sources might return an empty `srcs`.
255
- // if it's empty, use the parent of the root module.
256
- if self.srcs.is_empty() {
257
- if let Some(parent) = self.root_module().parent() {
258
- return vec![parent.to_owned()];
259
- }
260
261
-
262
let mut all_src_dirs: Vec<&Path> = self.srcs.iter().filter_map(|p| p.parent()).collect();
263
all_src_dirs.sort();
264
0 commit comments