@@ -182,7 +182,7 @@ pub trait DatastoreAttachTarget<ResourceType>: Selectable<Pg> + Sized {
182
182
collection_query : BoxedQuery < CollectionTable < ResourceType , Self > > ,
183
183
resource_query : BoxedQuery < ResourceTable < ResourceType , Self > > ,
184
184
185
- max_attached_resources : usize ,
185
+ max_attached_resources : u32 ,
186
186
187
187
// We are intentionally picky about this update statement:
188
188
// - The second argument - the WHERE clause - must match the default
@@ -344,7 +344,7 @@ where
344
344
// A (mostly) user-provided query for validating the resource.
345
345
resource_query : Box < dyn QueryFragment < Pg > + Send > ,
346
346
// The maximum number of resources which may be attached to the collection.
347
- max_attached_resources : usize ,
347
+ max_attached_resources : u32 ,
348
348
349
349
// Update statement for the resource.
350
350
update_resource_statement :
@@ -1118,7 +1118,7 @@ mod test {
1118
1118
1119
1119
setup_db ( & pool) . await ;
1120
1120
1121
- const RESOURCE_COUNT : usize = 5 ;
1121
+ const RESOURCE_COUNT : u32 = 5 ;
1122
1122
1123
1123
let collection_id = uuid:: Uuid :: new_v4 ( ) ;
1124
1124
0 commit comments