Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
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
118 changes: 59 additions & 59 deletions rust/Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion rust/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
[package]
name = "_rustgrimp"
version = "0.1.0"
edition = "2021"
edition = "2024"

[lib]
name = "_rustgrimp"
Expand Down
2 changes: 1 addition & 1 deletion rust/src/errors.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
use crate::exceptions::{InvalidModuleExpression, ModuleNotPresent, NoSuchContainer};
use pyo3::exceptions::PyValueError;
use pyo3::PyErr;
use pyo3::exceptions::PyValueError;
use thiserror::Error;

#[derive(Debug, Error)]
Expand Down
4 changes: 2 additions & 2 deletions rust/src/graph/direct_import_queries.rs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
use crate::errors::{GrimpError, GrimpResult};
use crate::graph::{
ExtendWithDescendants, Graph, ImportDetails, ModuleToken, EMPTY_IMPORT_DETAILS,
EMPTY_MODULE_TOKENS, MODULE_NAMES,
EMPTY_IMPORT_DETAILS, EMPTY_MODULE_TOKENS, ExtendWithDescendants, Graph, ImportDetails,
MODULE_NAMES, ModuleToken,
};
use crate::module_expressions::ModuleExpression;
use rustc_hash::FxHashSet;
Expand Down
2 changes: 1 addition & 1 deletion rust/src/graph/graph_manipulation.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
use crate::graph::{
Graph, ImportDetails, Module, ModuleIterator, ModuleToken, IMPORT_LINE_CONTENTS, MODULE_NAMES,
Graph, IMPORT_LINE_CONTENTS, ImportDetails, MODULE_NAMES, Module, ModuleIterator, ModuleToken,
};
use rustc_hash::FxHashSet;
use slotmap::secondary::Entry;
Expand Down
7 changes: 5 additions & 2 deletions rust/src/graph/hierarchy_queries.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
use crate::graph::{Graph, Module, ModuleIterator, ModuleToken, MODULE_NAMES};
use crate::graph::{Graph, MODULE_NAMES, Module, ModuleIterator, ModuleToken};
use crate::module_expressions::ModuleExpression;
use rustc_hash::FxHashSet;

Expand Down Expand Up @@ -50,7 +50,10 @@ impl Graph {
descendants.into_iter()
}

pub fn find_matching_modules(&self, expression: &ModuleExpression) -> impl ModuleIterator {
pub fn find_matching_modules(
&self,
expression: &ModuleExpression,
) -> impl ModuleIterator + use<'_> {
let interner = MODULE_NAMES.read().unwrap();
let modules: FxHashSet<_> = self
.modules
Expand Down
2 changes: 1 addition & 1 deletion rust/src/graph/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ use derive_new::new;
use getset::{CopyGetters, Getters};
use lazy_static::lazy_static;
use rustc_hash::{FxHashMap, FxHashSet};
use slotmap::{new_key_type, SecondaryMap, SlotMap};
use slotmap::{SecondaryMap, SlotMap, new_key_type};
use std::sync::RwLock;
use string_interner::backend::StringBackend;
use string_interner::{DefaultSymbol, StringInterner};
Expand Down
2 changes: 1 addition & 1 deletion rust/src/graph/pathfinding.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
use crate::errors::{GrimpError, GrimpResult};
use crate::graph::{Graph, ModuleToken, EMPTY_MODULE_TOKENS};
use crate::graph::{EMPTY_MODULE_TOKENS, Graph, ModuleToken};
use indexmap::{IndexMap, IndexSet};
use rustc_hash::{FxHashMap, FxHashSet, FxHasher};
use slotmap::SecondaryMap;
Expand Down
Loading
Loading