Make the Value non_exhaustive

This commit is contained in:
Olivier Goffart 2021-03-15 12:07:52 +01:00
parent a203097b88
commit 5a416d0fc7
2 changed files with 3 additions and 6 deletions

View file

@ -286,11 +286,7 @@ fn to_js_value<'cx>(
&format!("#{:02x}{:02x}{:02x}{:02x}", c.red(), c.green(), c.blue(), c.alpha()),
)
.as_value(cx),
Value::Brush(_)
| Value::PathElements(_)
| Value::EasingCurve(_)
| Value::EnumerationValue(..)
| Value::Model(_) => todo!("converting {:?} to js has not been implemented", val),
_ => todo!("converting {:?} to js has not been implemented", val),
})
}