mirror of
https://github.com/servo/servo.git
synced 2025-08-02 20:20:14 +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
|
@ -90,8 +90,12 @@ impl Convert<GPUErrorFilter> for ErrorFilter {
|
|||
}
|
||||
}
|
||||
|
||||
impl GPUErrorFilter {
|
||||
pub(crate) fn as_webgpu(&self) -> ErrorFilter {
|
||||
pub(crate) trait AsWebGpu {
|
||||
fn as_webgpu(&self) -> ErrorFilter;
|
||||
}
|
||||
|
||||
impl AsWebGpu for GPUErrorFilter {
|
||||
fn as_webgpu(&self) -> ErrorFilter {
|
||||
match self {
|
||||
GPUErrorFilter::Validation => ErrorFilter::Validation,
|
||||
GPUErrorFilter::Out_of_memory => ErrorFilter::OutOfMemory,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue