mirror of
https://github.com/teloxide/teloxide.git
synced 2025-03-14 11:44:04 +01:00
Apply suggestions from code review
This commit is contained in:
parent
f02ed38bb7
commit
cfb3c60a1c
1 changed files with 2 additions and 2 deletions
|
@ -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()
|
||||
);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue