Run `cargo fmt`

This commit is contained in:
Cecylia Bocovich 2023-01-20 16:12:29 -05:00
parent c837a13121
commit d5c98510db
1 changed files with 15 additions and 9 deletions

View File

@ -42,7 +42,10 @@ mod tests {
resource_types: vec![String::from("obfs2"), String::from("scramblesuit")], resource_types: vec![String::from("obfs2"), String::from("scramblesuit")],
}; };
let json = serde_json::to_string(&req).unwrap(); let json = serde_json::to_string(&req).unwrap();
assert_eq!(json, "{\"request_origin\":\"https\",\"resource_types\":[\"obfs2\",\"scramblesuit\"]}") assert_eq!(
json,
"{\"request_origin\":\"https\",\"resource_types\":[\"obfs2\",\"scramblesuit\"]}"
)
} }
#[test] #[test]
@ -51,7 +54,10 @@ mod tests {
flags.insert(String::from("fast"), true); flags.insert(String::from("fast"), true);
flags.insert(String::from("stable"), true); flags.insert(String::from("stable"), true);
let mut params = HashMap::new(); let mut params = HashMap::new();
params.insert(String::from("password"), String::from("ABCDEFGHIJKLMNOPQRSTUVWXYZ234567")); params.insert(
String::from("password"),
String::from("ABCDEFGHIJKLMNOPQRSTUVWXYZ234567"),
);
let bridge = Resource { let bridge = Resource {
r#type: String::from("scramblesuit"), r#type: String::from("scramblesuit"),
blocked_in: HashMap::new(), blocked_in: HashMap::new(),