mirror of
https://github.com/servo/servo.git
synced 2025-08-04 21:20:23 +01:00
Cleanups for future script crate split (#35987)
* script: Avoid direct impl blocks on generated dicts and unions. Signed-off-by: Josh Matthews <josh@joshmatthews.net> * script: Remove references to codegen-specific import module. Signed-off-by: Josh Matthews <josh@joshmatthews.net> * Fix tidy. Signed-off-by: Josh Matthews <josh@joshmatthews.net> --------- Signed-off-by: Josh Matthews <josh@joshmatthews.net>
This commit is contained in:
parent
3ecd1c0699
commit
d35da38a2f
43 changed files with 211 additions and 146 deletions
|
@ -387,8 +387,17 @@ impl Convert<ServoMediaChannelInterpretation> for ChannelInterpretation {
|
|||
}
|
||||
}
|
||||
|
||||
impl AudioNodeOptions {
|
||||
pub(crate) fn unwrap_or(
|
||||
pub(crate) trait AudioNodeOptionsHelper {
|
||||
fn unwrap_or(
|
||||
&self,
|
||||
count: u32,
|
||||
mode: ChannelCountMode,
|
||||
interpretation: ChannelInterpretation,
|
||||
) -> UnwrappedAudioNodeOptions;
|
||||
}
|
||||
|
||||
impl AudioNodeOptionsHelper for AudioNodeOptions {
|
||||
fn unwrap_or(
|
||||
&self,
|
||||
count: u32,
|
||||
mode: ChannelCountMode,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue