Skip to content

Commit 95e253f

Browse files
committed
chore: Update project to Rust 2024 edition
1 parent 9665d36 commit 95e253f

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
[package]
22
name = "pact-stub-server"
33
version = "0.6.2"
4-
edition = "2021"
4+
edition = "2024"
55
authors = ["Ronald Holshausen <[email protected]>"]
66
description = "Standalone pact stub server"
77
homepage = "https://www.pact.io"

src/pact_support.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ pub fn pact_response_to_hyper_response(response: &HttpResponse) -> Result<HyperR
7575
}
7676

7777
match &response.body {
78-
OptionalBody::Present(ref body, content_type, _) => {
78+
OptionalBody::Present(body, content_type, _) => {
7979
let content_type_header = CONTENT_TYPE;
8080
if !response.has_header(content_type_header.as_str()) {
8181
let content_type = content_type.clone()

0 commit comments

Comments
 (0)