Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Slightly clean up the final URL creation in canvas.toDataURL #21850

Merged
merged 7 commits into from Oct 3, 2018

Implement JSTraceable for (A, B, C, D) instead of (T, T, T, T)

  • Loading branch information
nox committed Oct 2, 2018
commit 435d4d9f251013373c31261dca373c08b9ded94a
@@ -261,7 +261,13 @@ unsafe impl<T: JSTraceable> JSTraceable for VecDeque<T> {
}
}

unsafe impl<T: JSTraceable> JSTraceable for (T, T, T, T) {
unsafe impl<A, B, C, D> JSTraceable for (A, B, C, D)
where
A: JSTraceable,
B: JSTraceable,
C: JSTraceable,
D: JSTraceable,
{
unsafe fn trace(&self, trc: *mut JSTracer) {
self.0.trace(trc);
self.1.trace(trc);
ProTip! Use n and p to navigate between commits in a pull request.
You can’t perform that action at this time.