Skip to content

Commit cafcffb

Browse files
committed
Fix clippy warnings and align Makefile with CI
- Remove redundant single-component path imports of tracing_subscriber from all example files - Update Makefile lint target to use --all-targets --all-features to match CI configuration and justfile This ensures make lint catches the same issues as CI clippy checks.
1 parent 7dda77f commit cafcffb

File tree

4 files changed

+1
-4
lines changed

4 files changed

+1
-4
lines changed

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ examples:
4747

4848
.PHONY: lint
4949
lint:
50-
cargo clippy -- -D warnings
50+
cargo clippy --all-targets --all-features -- -D warnings
5151

5252
.PHONY: fmt
5353
fmt:

examples/auth_plugin/main.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@ use std::collections::HashSet;
1010
use std::sync::Arc;
1111
use tokio::sync::RwLock;
1212
use tonic::{Request, Response, Status};
13-
use tracing_subscriber;
1413

1514
struct AuthPlugin {
1615
valid_tokens: Arc<RwLock<HashSet<String>>>,

examples/rate_limit_plugin/main.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@ use std::sync::Arc;
1111
use std::time::{Duration, Instant};
1212
use tokio::sync::Mutex;
1313
use tonic::{Request, Response, Status};
14-
use tracing_subscriber;
1514

1615
#[derive(Debug, Clone)]
1716
struct TokenBucket {

examples/simple_plugin/main.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@ use mcpd_plugins_sdk::{
77
serve, Capabilities, HttpRequest, HttpResponse, Metadata, Plugin, FLOW_REQUEST,
88
};
99
use tonic::{Request, Response, Status};
10-
use tracing_subscriber;
1110

1211
struct SimplePlugin;
1312

0 commit comments

Comments
 (0)