Skip to content

Commit 3887611

Browse files
committed
Bump version
1 parent 76997e0 commit 3887611

2 files changed

Lines changed: 9 additions & 3 deletions

File tree

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ edition = "2024"
44
license = "MIT"
55
name = "axum-client-ip"
66
repository = "https://github.com/imbolc/axum-client-ip"
7-
version = "1.2.0"
7+
version = "1.3.0"
88

99
[package.metadata.docs.rs]
1010
all-features = true

src/lib.rs

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -302,7 +302,10 @@ mod tests {
302302

303303
#[cfg(feature = "forwarded-header")]
304304
use super::RightmostForwarded;
305-
use super::{CfConnectingIp, ClientIpSource, FlyClientIp, RightmostXForwardedFor, TrueClientIp, XEnvoyExternalAddress, XRealIp};
305+
use super::{
306+
CfConnectingIp, ClientIpSource, FlyClientIp, RightmostXForwardedFor, TrueClientIp,
307+
XEnvoyExternalAddress, XRealIp,
308+
};
306309
use crate::CloudFrontViewerAddress;
307310

308311
const VALID_IPV4: &str = "1.2.3.4";
@@ -505,7 +508,10 @@ mod tests {
505508
let header = "x-envoy-external-address";
506509

507510
fn app() -> Router {
508-
Router::new().route("/", get(|ip: XEnvoyExternalAddress| async move { ip.0.to_string() }))
511+
Router::new().route(
512+
"/",
513+
get(|ip: XEnvoyExternalAddress| async move { ip.0.to_string() }),
514+
)
509515
}
510516

511517
let req = Request::builder().uri("/").body(Body::empty()).unwrap();

0 commit comments

Comments
 (0)