@@ -182,7 +182,7 @@ pub trait DatastoreAttachTarget<ResourceType>: Selectable<Pg> + Sized {
182182 collection_query : BoxedQuery < CollectionTable < ResourceType , Self > > ,
183183 resource_query : BoxedQuery < ResourceTable < ResourceType , Self > > ,
184184
185- max_attached_resources : usize ,
185+ max_attached_resources : u32 ,
186186
187187 // We are intentionally picky about this update statement:
188188 // - The second argument - the WHERE clause - must match the default
@@ -344,7 +344,7 @@ where
344344 // A (mostly) user-provided query for validating the resource.
345345 resource_query : Box < dyn QueryFragment < Pg > + Send > ,
346346 // The maximum number of resources which may be attached to the collection.
347- max_attached_resources : usize ,
347+ max_attached_resources : u32 ,
348348
349349 // Update statement for the resource.
350350 update_resource_statement :
@@ -1118,7 +1118,7 @@ mod test {
11181118
11191119 setup_db ( & pool) . await ;
11201120
1121- const RESOURCE_COUNT : usize = 5 ;
1121+ const RESOURCE_COUNT : u32 = 5 ;
11221122
11231123 let collection_id = uuid:: Uuid :: new_v4 ( ) ;
11241124
0 commit comments