Skip to content

Commit

Permalink
Formatting fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
ggiraldez committed Dec 17, 2024
1 parent 02905e4 commit cb802ad
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 11 deletions.
10 changes: 2 additions & 8 deletions crates/metaslang/bindings/src/builder/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -355,14 +355,8 @@ static PUSH_SCOPED_SYMBOL_ATTRS: Lazy<HashSet<&'static str>> = Lazy::new(|| {
PARENTS_ATTR,
])
});
static PUSH_SYMBOL_ATTRS: Lazy<HashSet<&'static str>> = Lazy::new(|| {
HashSet::from([
TYPE_ATTR,
SYMBOL_ATTR,
IS_REFERENCE_ATTR,
PARENTS_ATTR,
])
});
static PUSH_SYMBOL_ATTRS: Lazy<HashSet<&'static str>> =
Lazy::new(|| HashSet::from([TYPE_ATTR, SYMBOL_ATTR, IS_REFERENCE_ATTR, PARENTS_ATTR]));
static SCOPE_ATTRS: Lazy<HashSet<&'static str>> = Lazy::new(|| {
HashSet::from([
TYPE_ATTR,
Expand Down
4 changes: 1 addition & 3 deletions crates/metaslang/bindings/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -433,9 +433,7 @@ impl<'a, KT: KindTypes + 'static> Reference<'a, KT> {
Resolver::build_for(self, ResolveOptions::Full).all()
}

pub(crate) fn non_recursive_resolve(
&self,
) -> Vec<Definition<'a, KT>> {
pub(crate) fn non_recursive_resolve(&self) -> Vec<Definition<'a, KT>> {
// This was likely originated from a full resolution call, so cut
// recursion here by restricting the resolution algorithm.
Resolver::build_for(self, ResolveOptions::NonRecursive).all()
Expand Down

0 comments on commit cb802ad

Please sign in to comment.