mirror of
https://github.com/servo/servo.git
synced 2025-08-05 05:30:08 +01:00
use self.0 instead of destructing single item tuple structs
This commit is contained in:
parent
68a8085a2f
commit
418842faf9
17 changed files with 38 additions and 58 deletions
|
@ -33,8 +33,7 @@ impl ProfilerChan {
|
|||
///
|
||||
/// Panics if the send fails.
|
||||
pub fn send(&self, msg: ProfilerMsg) {
|
||||
let ProfilerChan(ref c) = *self;
|
||||
c.send(msg).unwrap();
|
||||
self.0.send(msg).unwrap();
|
||||
}
|
||||
|
||||
/// Runs `f()` with memory profiling.
|
||||
|
@ -118,8 +117,7 @@ impl ReportsChan {
|
|||
///
|
||||
/// Panics if the send fails.
|
||||
pub fn send(&self, report: Vec<Report>) {
|
||||
let ReportsChan(ref c) = *self;
|
||||
c.send(report).unwrap();
|
||||
self.0.send(report).unwrap();
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue