Apply suggestions from code review

This commit is contained in:
Waffle Maybe 2022-01-13 10:05:46 +03:00 committed by GitHub
parent f02ed38bb7
commit cfb3c60a1c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -329,7 +329,7 @@ pub(crate) mod option_url_from_string {
assert_eq!(url.url, None);
assert_eq!(
serde_json::to_string(&url).unwrap(),
r#"{"url":""}"#.to_string()
json.to_owned()
);
let json = r#"{"url":"https://github.com/token"}"#;
@ -340,7 +340,7 @@ pub(crate) mod option_url_from_string {
);
assert_eq!(
serde_json::to_string(&url).unwrap(),
r#"{"url":"https://github.com/token"}"#.to_string()
json.to_owned()
);
}
}