aboutsummaryrefslogtreecommitdiffstats
path: root/components/script/timers.rs
diff options
context:
space:
mode:
authorOluwatobi Sofela <60105594+oluwatobiss@users.noreply.github.com>2024-03-21 00:05:29 +0100
committerGitHub <noreply@github.com>2024-03-20 23:05:29 +0000
commit2789e9887666a05695778bd9d822616985b40dbc (patch)
tree69400ac55fd84db0ec60e69d71d17f9e6d221e99 /components/script/timers.rs
parentf55d1d288e4ede7da3090e853a0a0f6aab42c113 (diff)
downloadservo-2789e9887666a05695778bd9d822616985b40dbc.tar.gz
servo-2789e9887666a05695778bd9d822616985b40dbc.zip
clippy: Fix redundant field names warnings (#31793)
Diffstat (limited to 'components/script/timers.rs')
-rw-r--r--components/script/timers.rs14
1 files changed, 7 insertions, 7 deletions
diff --git a/components/script/timers.rs b/components/script/timers.rs
index f4da416566e..e63bc79f84e 100644
--- a/components/script/timers.rs
+++ b/components/script/timers.rs
@@ -133,7 +133,7 @@ impl OneshotTimers {
OneshotTimers {
js_timers: JsTimers::new(),
timer_event_chan: DomRefCell::new(None),
- scheduler_chan: scheduler_chan,
+ scheduler_chan,
next_timer_handle: Cell::new(OneshotTimerHandle(1)),
timers: DomRefCell::new(Vec::new()),
suspended_since: Cell::new(None),
@@ -162,9 +162,9 @@ impl OneshotTimers {
let timer = OneshotTimer {
handle: new_handle,
- source: source,
- callback: callback,
- scheduled_for: scheduled_for,
+ source,
+ callback,
+ scheduled_for,
};
{
@@ -468,9 +468,9 @@ impl JsTimers {
// step 4
let mut task = JsTimerTask {
handle: JsTimerHandle(new_handle),
- source: source,
- callback: callback,
- is_interval: is_interval,
+ source,
+ callback,
+ is_interval,
is_user_interacting: ScriptThread::is_user_interacting(),
nesting_level: 0,
duration: Length::new(0),