Skip to content

Commit 29acee6

Browse files
committed
Fix failing doctests after trait rename
1 parent 9a7d08a commit 29acee6

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

nexus/db-model/src/collection.rs

+4-4
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ use std::fmt::Debug;
1313
/// Projects, the Organization datatype should implement this trait.
1414
/// ```
1515
/// # use diesel::prelude::*;
16-
/// # use nexus_db_model::DatastoreCollection;
16+
/// # use nexus_db_model::DatastoreCollectionConfig;
1717
/// # use nexus_db_model::Generation;
1818
/// #
1919
/// # table! {
@@ -48,7 +48,7 @@ use std::fmt::Debug;
4848
/// pub rcgen: Generation,
4949
/// }
5050
///
51-
/// impl DatastoreCollection<Project> for Organization {
51+
/// impl DatastoreCollectionConfig<Project> for Organization {
5252
/// // Type of Organization::identity::id and Project::organization_id
5353
/// type CollectionId = uuid::Uuid;
5454
///
@@ -82,7 +82,7 @@ pub trait DatastoreCollectionConfig<ResourceType> {
8282
/// Disks, the Instance datatype should implement this trait.
8383
/// ```
8484
/// # use diesel::prelude::*;
85-
/// # use nexus_db_model::DatastoreAttachTarget;
85+
/// # use nexus_db_model::DatastoreAttachTargetConfig;
8686
/// #
8787
/// # table! {
8888
/// # test_schema.instance (id) {
@@ -114,7 +114,7 @@ pub trait DatastoreCollectionConfig<ResourceType> {
114114
/// pub time_deleted: Option<chrono::DateTime<chrono::Utc>>,
115115
/// }
116116
///
117-
/// impl DatastoreAttachTarget<Disk> for Instance {
117+
/// impl DatastoreAttachTargetConfig<Disk> for Instance {
118118
/// // Type of instance::id and disk::id.
119119
/// type Id = uuid::Uuid;
120120
///

0 commit comments

Comments
 (0)