Closed Bug 1766569 Opened 2 years ago Closed 2 years ago

wgpu_bindings::server::GlobalExt trait serves no purpose

Categories

(Core :: Graphics: WebGPU, enhancement)

enhancement

Tracking

()

RESOLVED FIXED
101 Branch
Tracking Status
firefox101 --- fixed

People

(Reporter: jimb, Assigned: jimb)

Details

Attachments

(1 file)

The GlobalExt trait private to gfx/wgpu_bindings/src/server.rs is used in a way that makes it no different from a simple impl Global { ... } block with non-pub functions. GlobalExt is never used to bound type variables, construct trait objects, or anything else that requires a trait. It's just misleading, and should be removed.

Replace the GlobalExt trait with a simple impl Global block, which
has exactly the same effect.

Assignee: nobody → jimb
Status: NEW → ASSIGNED
Pushed by jblandy@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/191f7843f8fb
Remove `wgpu_bindings::server::GlobalExt` trait. r=jgilbert
Status: ASSIGNED → RESOLVED
Closed: 2 years ago
Resolution: --- → FIXED
Target Milestone: --- → 101 Branch
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: