Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improve pub use parsing and trait definition parsing in third party crates #2025

Merged
merged 34 commits into from
Jun 4, 2024
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
fix: err
  • Loading branch information
fzyzcjy committed Jun 4, 2024
commit ad08eaf495b10960581281df5ed2de28dea97038
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ fn parse_pub_use_from_item(item: &syn::Item) -> Option<PubUseInfo> {
let tree = &item_use.tree;
let tree_string = quote::quote!(#tree).to_string().replace(' ', "");
let tree_parts = tree_string.split(Namespace::SEP).collect_vec();
let name_filters = match tree_parts.last() {
let name_filters = match tree_parts.last().unwrap() {
"*" => None,
x => Some(x.to_string()),
};
Expand Down