mirror of
https://github.com/servo/servo.git
synced 2025-08-02 20:20:14 +01:00
clippy: fix warnings in components/shared (#31565)
* clippy: fix some warnings in components/shared * fix: unit tests * fix: review comments
This commit is contained in:
parent
3a5ca785d3
commit
43f44965cd
14 changed files with 102 additions and 139 deletions
|
@ -42,10 +42,7 @@ pub struct ImageResponder {
|
|||
|
||||
impl ImageResponder {
|
||||
pub fn new(sender: IpcSender<PendingImageResponse>, id: PendingImageId) -> ImageResponder {
|
||||
ImageResponder {
|
||||
sender: sender,
|
||||
id: id,
|
||||
}
|
||||
ImageResponder { sender, id }
|
||||
}
|
||||
|
||||
pub fn respond(&self, response: ImageResponse) {
|
||||
|
@ -54,7 +51,7 @@ impl ImageResponder {
|
|||
// That's not a case that's worth warning about.
|
||||
// TODO(#15501): are there cases in which we should perform cleanup?
|
||||
let _ = self.sender.send(PendingImageResponse {
|
||||
response: response,
|
||||
response,
|
||||
id: self.id,
|
||||
});
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue