Skip to content

Commit e7f54ce

Browse files
committed
fix(ci): resolve formatting and lychee workflow issues
Apply rustfmt formatting and fix lychee docs glob pattern to properly match markdown files in the docs directory.
1 parent f13734d commit e7f54ce

5 files changed

Lines changed: 12 additions & 13 deletions

File tree

.github/workflows/lychee.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,5 +21,5 @@ jobs:
2121
- uses: actions/checkout@v4
2222
- uses: lycheeverse/lychee-action@v2
2323
with:
24-
args: --config ./lychee.toml --cache-exclude-status 429 '**/README.md' './docs/*.md'
24+
args: --config ./lychee.toml --cache-exclude-status 429 '**/README.md' 'docs/**/*.md'
2525
fail: true

crates/cli/src/builder.rs

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,10 +12,12 @@ use roxy_rpc::RpcCodec;
1212
use roxy_server::{ServerBuilder, create_router};
1313
use roxy_traits::DefaultCodecConfig;
1414

15-
use crate::backends::BackendFactory;
16-
use crate::groups::GroupFactory;
17-
use crate::routing::RouterFactory;
18-
use crate::validators::{RateLimiterFactory, ValidatorFactory};
15+
use crate::{
16+
backends::BackendFactory,
17+
groups::GroupFactory,
18+
routing::RouterFactory,
19+
validators::{RateLimiterFactory, ValidatorFactory},
20+
};
1921

2022
/// Builder for constructing the Roxy application.
2123
///

crates/cli/src/groups.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -140,8 +140,7 @@ pub fn create_groups(
140140
#[cfg(test)]
141141
mod tests {
142142
use super::*;
143-
use crate::backends::create_backends;
144-
use crate::testutils::minimal_config;
143+
use crate::{backends::create_backends, testutils::minimal_config};
145144

146145
#[test]
147146
fn test_create_groups() {

crates/cli/src/lib.rs

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -34,13 +34,12 @@ mod server;
3434
pub use server::run_server;
3535

3636
mod validators;
37-
pub use validators::{
38-
RateLimiterFactory, ValidatorFactory, create_rate_limiter, create_validators,
39-
};
40-
4137
// Re-export for convenience
4238
pub use clap;
4339
pub use eyre;
40+
pub use validators::{
41+
RateLimiterFactory, ValidatorFactory, create_rate_limiter, create_validators,
42+
};
4443

4544
/// Test utilities for creating test configurations.
4645
#[cfg(test)]

crates/server/src/http.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,7 @@ use roxy_rpc::{
2323
use roxy_traits::{Cache, RateLimitResult, RateLimiter};
2424
use serde_json::value::RawValue;
2525

26-
use crate::Span;
27-
use crate::error::ServerError;
26+
use crate::{Span, error::ServerError};
2827

2928
/// Default header for client identification in rate limiting.
3029
const CLIENT_ID_HEADER: &str = "X-Forwarded-For";

0 commit comments

Comments
 (0)