-
-
Notifications
You must be signed in to change notification settings - Fork 31
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix false positive for multi dep single use statements (#120)
Resolves #91 This also resolves some false detections of `not_my_dep::my_dep_name::stuff_in_my_dep` 😊 I couldn't find a way to avoid detection of `futures` in with the single line regexp ```rust pub use { async_trait::{mod1, dep2}, not_futures::{ futures::{futures_mod1, futures_mod2::{futures_mod21, futures_mod22}} }, reqwest, }; ``` This update does come at a small performance downside (that might be resolved by not instantiating a regexp per dependency?). On our repo of ~500k lines of machete goes from ~45s user time to ~48s of user time. --------- Co-authored-by: Elrendio <[email protected]> Co-authored-by: Benjamin Bouvier <[email protected]>
- Loading branch information
1 parent
16e3e93
commit a767940
Showing
1 changed file
with
108 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters