Skip to content

Commit

Permalink
fix clippy
Browse files Browse the repository at this point in the history
  • Loading branch information
jdonszelmann committed May 24, 2024
1 parent 5fb52a8 commit e154027
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
1 change: 1 addition & 0 deletions scopegraphs-regular-expressions/src/compile.rs
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ impl MatchState {
/// This struct can either be turned into a
/// * [`DynamicMatcher`](crate::dynamic::DynamicMatcher) to match on a regex that was compiled at runtime.
/// * An implementation of [`RegexMatcher`](crate::RegexMatcher) generated using [emit](Automaton::emit).
///
/// This function can be called at compile time (through the `compile_regex!` macro) and it
/// emits the Rust code that can match the regular expression.
///
Expand Down
2 changes: 1 addition & 1 deletion scopegraphs/src/completeness/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
//! queries. This is the most suitable choice for type checkers that need to do dynamic scheduling.

Check failure on line 14 in scopegraphs/src/completeness/mod.rs

View workflow job for this annotation

GitHub Actions / clippy

doc list item missing indentation

error: doc list item missing indentation --> scopegraphs/src/completeness/mod.rs:14:5 | 14 | //! queries. This is the most suitable choice for type checkers that need to do dynamic scheduling. | ^ | = help: if this is supposed to be its own paragraph, add a blank line = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#doc_lazy_continuation help: indent this line | 14 | //! queries. This is the most suitable choice for type checkers that need to do dynamic scheduling. | ++
//! Running queries can return an error, because scopes relevant to the query weren't closed yet.

Check failure on line 15 in scopegraphs/src/completeness/mod.rs

View workflow job for this annotation

GitHub Actions / clippy

doc list item missing indentation

error: doc list item missing indentation --> scopegraphs/src/completeness/mod.rs:15:5 | 15 | //! Running queries can return an error, because scopes relevant to the query weren't closed yet. | ^ | = help: if this is supposed to be its own paragraph, add a blank line = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#doc_lazy_continuation help: indent this line | 15 | //! Running queries can return an error, because scopes relevant to the query weren't closed yet. | ++
//! * [`FutureCompleteness`] is like [`ExplicitClose`], except queries can no longer error. Instead,
//! queries return a [`Future`](std::future::Future) that resolves when all scopes related to the query are closed.
//! queries return a [`Future`](std::future::Future) that resolves when all scopes related to the query are closed.
mod future;
pub use future::*;
Expand Down
5 changes: 4 additions & 1 deletion scopegraphs/src/resolve/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -394,10 +394,13 @@ pub trait Resolve<'sg, 'rslv> {
/// This depends on the [completeness strategy](crate::completeness::Completeness) used.
///
/// * Using [`ImplicitClose`](crate::completeness::ImplicitClose) this is a simply a `Vec<Scope>`.
/// Querying using this completeness strategy cannot fail.
/// Querying using this completeness strategy cannot fail.
/// * Using [`ExplicitClose`](crate::completeness::ExplicitClose) this is a [`EdgesOrDelay<Scope, LABEL>`](crate::completeness::EdgesOrDelay).
///
/// Querying can fail, because a scope this query traverses wasn't closed yet.
///
/// Using [`FutureCompleteness`](crate::completeness::FutureCompleteness), this is a [`Future`](std::future::Future).
///
/// Querying can pend, because a scope this query traverses wasn't closed yet.
type EnvContainer
where
Expand Down

0 comments on commit e154027

Please sign in to comment.