Skip to content

Commit d36b31e

Browse files
committed
Fixed cargo fmt
1 parent 754768c commit d36b31e

File tree

3 files changed

+5
-6
lines changed

3 files changed

+5
-6
lines changed

crates/common/src/constants.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,4 +18,4 @@ pub const HEADER_X_GEO_REGION: HeaderName = HeaderName::from_static("x-geo-regio
1818
pub const HEADER_X_SUBJECT_ID: HeaderName = HeaderName::from_static("x-subject-id");
1919
pub const HEADER_X_REQUEST_ID: HeaderName = HeaderName::from_static("x-request-id");
2020
pub const HEADER_X_COMPRESS_HINT: HeaderName = HeaderName::from_static("x-compress-hint");
21-
pub const HEADER_X_DEBUG_FASTLY_POP: HeaderName = HeaderName::from_static("x-debug-fastly-pop");
21+
pub const HEADER_X_DEBUG_FASTLY_POP: HeaderName = HeaderName::from_static("x-debug-fastly-pop");

crates/common/src/prebid.rs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,9 @@ use fastly::http::{header, Method};
22
use fastly::{Error, Request, Response};
33
use serde_json::json;
44

5-
use crate::constants::{HEADER_SYNTHETIC_FRESH, HEADER_SYNTHETIC_TRUSTED_SERVER, HEADER_X_FORWARDED_FOR};
5+
use crate::constants::{
6+
HEADER_SYNTHETIC_FRESH, HEADER_SYNTHETIC_TRUSTED_SERVER, HEADER_X_FORWARDED_FOR,
7+
};
68
use crate::settings::Settings;
79
use crate::synthetic::generate_synthetic_id;
810

crates/common/src/synthetic.rs

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -160,10 +160,7 @@ mod tests {
160160
#[test]
161161
fn test_get_or_generate_synthetic_id_with_cookie() {
162162
let settings = create_settings();
163-
let req = create_test_request(vec![(
164-
header::COOKIE,
165-
"synthetic_id=existing_cookie_id",
166-
)]);
163+
let req = create_test_request(vec![(header::COOKIE, "synthetic_id=existing_cookie_id")]);
167164

168165
let synthetic_id = get_or_generate_synthetic_id(&settings, &req);
169166
assert_eq!(synthetic_id, "existing_cookie_id");

0 commit comments

Comments
 (0)