Mark dead BrowsingContextActor fields with underscores.

Signed-off-by: Dominic Cooney <dominic.cooney@gmail.com>
This commit is contained in:
Dominic Cooney 2021-05-23 19:27:57 +09:00
parent 3b93d20991
commit 30c5ad95d5

View file

@ -125,14 +125,14 @@ pub(crate) struct BrowsingContextActor {
pub title: RefCell<String>, pub title: RefCell<String>,
pub url: RefCell<String>, pub url: RefCell<String>,
pub console: String, pub console: String,
pub emulation: String, pub _emulation: String,
pub inspector: String, pub _inspector: String,
pub timeline: String, pub _timeline: String,
pub profiler: String, pub _profiler: String,
pub performance: String, pub _performance: String,
pub styleSheets: String, pub _styleSheets: String,
pub thread: String, pub thread: String,
pub tab: String, pub _tab: String,
pub streams: RefCell<HashMap<StreamId, TcpStream>>, pub streams: RefCell<HashMap<StreamId, TcpStream>>,
pub browsing_context_id: BrowsingContextId, pub browsing_context_id: BrowsingContextId,
pub active_pipeline: Cell<PipelineId>, pub active_pipeline: Cell<PipelineId>,
@ -288,13 +288,13 @@ impl BrowsingContextActor {
title: RefCell::new(String::from(title)), title: RefCell::new(String::from(title)),
url: RefCell::new(url.into_string()), url: RefCell::new(url.into_string()),
console: console, console: console,
emulation: emulation.name(), _emulation: emulation.name(),
inspector: inspector.name(), _inspector: inspector.name(),
timeline: timeline.name(), _timeline: timeline.name(),
profiler: profiler.name(), _profiler: profiler.name(),
performance: performance.name(), _performance: performance.name(),
styleSheets: styleSheets.name(), _styleSheets: styleSheets.name(),
tab: tabdesc.name(), _tab: tabdesc.name(),
thread: thread.name(), thread: thread.name(),
streams: RefCell::new(HashMap::new()), streams: RefCell::new(HashMap::new()),
browsing_context_id: id, browsing_context_id: id,