Skip to content
Draft
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
5 changes: 5 additions & 0 deletions rust/rubydex/src/indexing/local_graph.rs
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,11 @@ impl LocalGraph {
}
}

#[must_use]
pub fn empty(uri: &str) -> Self {
Self::new(UriId::from(uri), Document::new(uri.to_string(), ""))
}

#[must_use]
pub fn uri_id(&self) -> UriId {
self.uri_id
Expand Down
1 change: 1 addition & 0 deletions rust/rubydex/src/model.rs
Original file line number Diff line number Diff line change
Expand Up @@ -9,5 +9,6 @@ pub mod identity_maps;
pub mod ids;
pub mod name;
pub mod references;
pub mod shape;
pub mod string_ref;
pub mod visibility;
Loading
Loading