mirror of
https://github.com/servo/servo.git
synced 2025-07-21 22:33:41 +01:00
clippy: Fix let_and_return warnings (#31964)
This commit is contained in:
parent
0da2508e4d
commit
c7b73e1ef4
8 changed files with 17 additions and 31 deletions
|
@ -122,7 +122,7 @@ impl BaseAudioContext {
|
|||
|
||||
let client_context_id =
|
||||
ClientContextId::build(pipeline_id.namespace_id.0, pipeline_id.index.0.get());
|
||||
let context = BaseAudioContext {
|
||||
BaseAudioContext {
|
||||
eventtarget: EventTarget::new_inherited(),
|
||||
audio_context_impl: ServoMedia::get()
|
||||
.unwrap()
|
||||
|
@ -135,9 +135,7 @@ impl BaseAudioContext {
|
|||
sample_rate,
|
||||
state: Cell::new(AudioContextState::Suspended),
|
||||
channel_count: channel_count.into(),
|
||||
};
|
||||
|
||||
context
|
||||
}
|
||||
}
|
||||
|
||||
/// Tells whether this is an OfflineAudioContext or not.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue