Skip to content

Commit

Permalink
Rust: fix typo
Browse files Browse the repository at this point in the history
  • Loading branch information
Paolo Tranquilli committed Jan 17, 2025
1 parent bbaff8b commit e6cb376
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions rust/extractor/src/rust_analyzer.rs
Original file line number Diff line number Diff line change
Expand Up @@ -143,11 +143,11 @@ struct CargoManifestSlice {
workspace: Option<CargoManifestMembersSlice>,
}

struct ToMlReader {
struct TomlReader {
cache: HashMap<ManifestPath, Rc<CargoManifestSlice>>,
}

impl ToMlReader {
impl TomlReader {
fn new() -> Self {
Self {
cache: HashMap::new(),
Expand All @@ -171,7 +171,7 @@ impl ToMlReader {
}
}

fn find_workspace(reader: &mut ToMlReader, manifest: &ProjectManifest) -> Option<ProjectManifest> {
fn find_workspace(reader: &mut TomlReader, manifest: &ProjectManifest) -> Option<ProjectManifest> {
let ProjectManifest::CargoToml(cargo) = manifest else {
return None;
};
Expand Down Expand Up @@ -227,7 +227,7 @@ pub fn find_project_manifests(
.collect();
let discovered = ra_ap_project_model::ProjectManifest::discover_all(&abs_files);
let mut ret = HashSet::new();
let mut reader = ToMlReader::new();
let mut reader = TomlReader::new();
for manifest in discovered {
let workspace = find_workspace(&mut reader, &manifest).unwrap_or(manifest);
ret.insert(workspace);
Expand Down

0 comments on commit e6cb376

Please sign in to comment.