mirror of
https://github.com/servo/servo.git
synced 2025-08-03 12:40:06 +01:00
Add a Reflectable bound to Root's type parameter.
This commit is contained in:
parent
84b1b52682
commit
b59f54ce81
1 changed files with 1 additions and 1 deletions
|
@ -593,7 +593,7 @@ impl RootCollection {
|
|||
/// `RootCollection` object. Attempts to transfer ownership of a `Root` via
|
||||
/// moving will trigger dynamic unrooting failures due to incorrect ordering.
|
||||
#[no_move]
|
||||
pub struct Root<T> {
|
||||
pub struct Root<T: Reflectable> {
|
||||
/// List that ensures correct dynamic root ordering
|
||||
root_list: &'static RootCollection,
|
||||
/// Reference to rooted value that must not outlive this container
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue