@@ -161,7 +161,7 @@ pub enum Relation<'r> {
161
161
Controls ( & ' r [ & ' r Accessible ] ) ,
162
162
DescribedBy ( & ' r [ & ' r Accessible ] ) ,
163
163
Details ( & ' r [ & ' r Accessible ] ) ,
164
- ErrorMessage ( & ' r Accessible ) ,
164
+ ErrorMessage ( & ' r [ & ' r Accessible ] ) ,
165
165
FlowTo ( & ' r [ & ' r Accessible ] ) ,
166
166
LabelledBy ( & ' r [ & ' r Accessible ] ) ,
167
167
Owns ( & ' r [ & ' r Accessible ] ) ,
@@ -202,7 +202,7 @@ impl<'r> Relation<'r> {
202
202
Controls ( v) => ( AccessibleRelation :: Controls , to_ref_list_value ( v) ) ,
203
203
DescribedBy ( v) => ( AccessibleRelation :: DescribedBy , to_ref_list_value ( v) ) ,
204
204
Details ( v) => ( AccessibleRelation :: Details , to_ref_list_value ( v) ) ,
205
- ErrorMessage ( v) => ( AccessibleRelation :: ErrorMessage , v . to_value ( ) ) ,
205
+ ErrorMessage ( v) => ( AccessibleRelation :: ErrorMessage , to_ref_list_value ( v ) ) ,
206
206
FlowTo ( v) => ( AccessibleRelation :: FlowTo , to_ref_list_value ( v) ) ,
207
207
LabelledBy ( v) => ( AccessibleRelation :: LabelledBy , to_ref_list_value ( v) ) ,
208
208
Owns ( v) => ( AccessibleRelation :: Owns , to_ref_list_value ( v) ) ,
@@ -301,7 +301,7 @@ mod tests {
301
301
Relation :: Controls ( & [ other1. upcast_ref ( ) , other2. upcast_ref ( ) ] ) ,
302
302
Relation :: DescribedBy ( & [ other1. upcast_ref ( ) , other2. upcast_ref ( ) ] ) ,
303
303
Relation :: Details ( & [ other1. upcast_ref ( ) , other2. upcast_ref ( ) ] ) ,
304
- Relation :: ErrorMessage ( other1. upcast_ref ( ) ) ,
304
+ Relation :: ErrorMessage ( & [ other1. upcast_ref ( ) ] ) ,
305
305
Relation :: FlowTo ( & [ other1. upcast_ref ( ) , other2. upcast_ref ( ) ] ) ,
306
306
Relation :: LabelledBy ( & [ other1. upcast_ref ( ) , other2. upcast_ref ( ) ] ) ,
307
307
Relation :: Owns ( & [ other1. upcast_ref ( ) , other2. upcast_ref ( ) ] ) ,
0 commit comments