Skip to content

Commit

Permalink
Mark non-Rust code as such and enable CI doc-tests on ignored tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Urgau authored and syphar committed Feb 14, 2024
1 parent fd08589 commit ccb17c0
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ jobs:
env:
DOCSRS_INCLUDE_DEFAULT_TARGETS: false
run: |
cargo test --locked -- --test-threads=1
cargo test --locked -- --ignored --test-threads=1
- name: Clean up the database
run: docker-compose down --volumes
Expand Down
4 changes: 2 additions & 2 deletions src/utils/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ where
/// The join-error will also be converted into an `anyhow::Error`.
///
/// with standard `tokio::task::spawn_blocking`:
/// ```ignore
/// ```text,ignore
/// let data = spawn_blocking(move || -> anyhow::Result<_> {
/// let data = get_the_data()?;
/// Ok(data)
Expand All @@ -104,7 +104,7 @@ where
/// ```
///
/// with this helper function:
/// ```ignore
/// ```text,ignore
/// let data = spawn_blocking(move || {
/// let data = get_the_data()?;
/// Ok(data)
Expand Down
2 changes: 1 addition & 1 deletion src/web/metrics.rs
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ pub(super) async fn instance_metrics_handler(
/// since we need the route-name.
///
/// Can be used like:
/// ```ignore
/// ```text,ignore
/// get(handler).route_layer(middleware::from_fn(|request, next| async {
/// request_recorder(request, next, Some("static resource")).await
/// }))
Expand Down

0 comments on commit ccb17c0

Please sign in to comment.