mirror of
https://github.com/teloxide/teloxide.git
synced 2025-03-14 11:44:04 +01:00
Fix Clippy: remove useless (immediately implicitly dereferenced) refs
This commit is contained in:
parent
8ea42fe871
commit
c1eca613d5
3 changed files with 3 additions and 3 deletions
|
@ -80,7 +80,7 @@ mod tests {
|
|||
}),
|
||||
file_name: None,
|
||||
};
|
||||
let actual = serde_json::from_str::<Audio>(&json).unwrap();
|
||||
let actual = serde_json::from_str::<Audio>(json).unwrap();
|
||||
assert_eq!(actual, expected)
|
||||
}
|
||||
}
|
||||
|
|
|
@ -625,7 +625,7 @@ mod tests {
|
|||
can_promote_members: true,
|
||||
}),
|
||||
};
|
||||
let actual = serde_json::from_str::<ChatMember>(&json).unwrap();
|
||||
let actual = serde_json::from_str::<ChatMember>(json).unwrap();
|
||||
assert_eq!(actual, expected)
|
||||
}
|
||||
}
|
||||
|
|
|
@ -66,7 +66,7 @@ mod tests {
|
|||
username: Some("Username".to_string()),
|
||||
language_code: Some(String::from("ru")),
|
||||
};
|
||||
let actual = serde_json::from_str::<User>(&json).unwrap();
|
||||
let actual = serde_json::from_str::<User>(json).unwrap();
|
||||
assert_eq!(actual, expected)
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue