@@ -49,11 +49,11 @@ impl AccessControlCluster {
49
49
base : Cluster :: new ( ID ) ?,
50
50
acl_mgr,
51
51
} ) ;
52
- c. base . add_attribute ( attr_acl_new ( ) ? ) ?;
53
- c. base . add_attribute ( attr_extension_new ( ) ? ) ?;
54
- c. base . add_attribute ( attr_subjects_per_entry_new ( ) ? ) ?;
55
- c. base . add_attribute ( attr_targets_per_entry_new ( ) ? ) ?;
56
- c. base . add_attribute ( attr_entries_per_fabric_new ( ) ? ) ?;
52
+ c. base . add_attribute ( attr_acl_new ( ) ) ?;
53
+ c. base . add_attribute ( attr_extension_new ( ) ) ?;
54
+ c. base . add_attribute ( attr_subjects_per_entry_new ( ) ) ?;
55
+ c. base . add_attribute ( attr_targets_per_entry_new ( ) ) ?;
56
+ c. base . add_attribute ( attr_entries_per_fabric_new ( ) ) ?;
57
57
Ok ( c)
58
58
}
59
59
@@ -143,7 +143,7 @@ impl ClusterType for AccessControlCluster {
143
143
}
144
144
}
145
145
146
- fn attr_acl_new ( ) -> Result < Attribute , Error > {
146
+ fn attr_acl_new ( ) -> Attribute {
147
147
Attribute :: new (
148
148
Attributes :: Acl as u16 ,
149
149
AttrValue :: Custom ,
@@ -152,7 +152,7 @@ fn attr_acl_new() -> Result<Attribute, Error> {
152
152
)
153
153
}
154
154
155
- fn attr_extension_new ( ) -> Result < Attribute , Error > {
155
+ fn attr_extension_new ( ) -> Attribute {
156
156
Attribute :: new (
157
157
Attributes :: Extension as u16 ,
158
158
AttrValue :: Custom ,
@@ -161,7 +161,7 @@ fn attr_extension_new() -> Result<Attribute, Error> {
161
161
)
162
162
}
163
163
164
- fn attr_subjects_per_entry_new ( ) -> Result < Attribute , Error > {
164
+ fn attr_subjects_per_entry_new ( ) -> Attribute {
165
165
Attribute :: new (
166
166
Attributes :: SubjectsPerEntry as u16 ,
167
167
AttrValue :: Uint16 ( acl:: SUBJECTS_PER_ENTRY as u16 ) ,
@@ -170,7 +170,7 @@ fn attr_subjects_per_entry_new() -> Result<Attribute, Error> {
170
170
)
171
171
}
172
172
173
- fn attr_targets_per_entry_new ( ) -> Result < Attribute , Error > {
173
+ fn attr_targets_per_entry_new ( ) -> Attribute {
174
174
Attribute :: new (
175
175
Attributes :: TargetsPerEntry as u16 ,
176
176
AttrValue :: Uint16 ( acl:: TARGETS_PER_ENTRY as u16 ) ,
@@ -179,7 +179,7 @@ fn attr_targets_per_entry_new() -> Result<Attribute, Error> {
179
179
)
180
180
}
181
181
182
- fn attr_entries_per_fabric_new ( ) -> Result < Attribute , Error > {
182
+ fn attr_entries_per_fabric_new ( ) -> Attribute {
183
183
Attribute :: new (
184
184
Attributes :: EntriesPerFabric as u16 ,
185
185
AttrValue :: Uint16 ( acl:: ENTRIES_PER_FABRIC as u16 ) ,
0 commit comments