Skip to content

Commit

Permalink
Remove incorrect type argument
Browse files Browse the repository at this point in the history
  • Loading branch information
AZWN committed Oct 28, 2024
1 parent 4f0a919 commit bfa1df3
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 10 deletions.
2 changes: 1 addition & 1 deletion scopegraphs/src/completeness/implicit.rs
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ use super::Implicit;
/// Unlike [`ExplicitClose`](crate::completeness::ExplicitClose), this implementation will implicitly close edges once traversed.
/// This does not require special attention from the type checker writer.
///
/// Returns [`EdgeClosedError`](EdgeClosedError) when an edge is added to a scope in which the label is already
/// Returns [EdgeClosedError] when an edge is added to a scope in which the label is already
/// closed (because `get_edges(s, l, ...)` was called earlier.
///
/// When edges are retrieved (e.g. during query resolution) the `(src, label)` edge is closed.
Expand Down
11 changes: 2 additions & 9 deletions scopegraphs/src/resolve/lookup.rs
Original file line number Diff line number Diff line change
Expand Up @@ -364,7 +364,7 @@ mod tests {
},
future_wrapper::FutureWrapper,
query_regex,
resolve::{DataWellformedness, Resolve, ResolvedPath},
resolve::{Resolve, ResolvedPath},
storage::Storage,
Label, ScopeGraph,
};
Expand Down Expand Up @@ -468,14 +468,7 @@ mod tests {
.with_path_wellformedness(query_regex!(Lbl: Lex* Imp? Def))
.with_data_wellformedness(TData::matcher_fut("x"))
.with_label_order(label_order!(Lbl: Def < Imp < Lex));
type DWF = impl for<'sg> DataWellformedness<
'sg,
TData<'sg>,
Output = FutureWrapper<'sg, bool>,
>;
let env =
crate::resolve::Query::<'_, '_, '_, _, _, _, _, DWF, _, _>::resolve(&query, s_let)
.await;
let env = query.resolve(s_let).await;

let env_vec = env.into_iter().collect::<Vec<_>>();
assert_eq!(1, env_vec.len());
Expand Down

0 comments on commit bfa1df3

Please sign in to comment.