diff --git a/src/contexts/context_traits/access_context_trait.rs b/src/contexts/context_traits/access_context_trait.rs index 54fb83e..36d08e0 100644 --- a/src/contexts/context_traits/access_context_trait.rs +++ b/src/contexts/context_traits/access_context_trait.rs @@ -6,7 +6,7 @@ use sea_orm::DbErr; #[async_trait] pub trait AccessContextTrait: EntityContextTrait { - /// Searches for an access entity by `User` and `Project` id, + /// Searches for an access entity by `User` and `Project` id, /// returning [`Some`] if any entity was found, [`None`] otherwise /// # Errors /// Errors on failed connection, execution error or constraint violations. diff --git a/src/contexts/context_traits/entity_context_trait.rs b/src/contexts/context_traits/entity_context_trait.rs index f704c4b..5bbb3f9 100644 --- a/src/contexts/context_traits/entity_context_trait.rs +++ b/src/contexts/context_traits/entity_context_trait.rs @@ -11,7 +11,7 @@ pub trait EntityContextTrait: Send + Sync { /// # Errors /// Errors on failed connection, execution error or constraint violations. /// # Notes - /// Most implementations does not allow the caller to set the primary key manually, + /// Most implementations does not allow the caller to set the primary key manually, /// if the key is needed, use the returned value to ensure that the correct key is used async fn create(&self, entity: T) -> Result; /// Searches for an entity by its primary key, returning [`Some`] if an entity is found, [`None`] otherwise @@ -25,7 +25,7 @@ pub trait EntityContextTrait: Send + Sync { /// Updates a given entity. This is usually done by searching by primary key /// # Errors /// Errors on failed connection, execution error or constraint violations. - /// # Notes + /// # Notes /// It is not possible to change the primary key, as it is used to look up the given entity. async fn update(&self, entity: T) -> Result; /// Searches for an entity by primary key and deletes it diff --git a/src/contexts/context_traits/session_context_trait.rs b/src/contexts/context_traits/session_context_trait.rs index 765dd89..5139cea 100644 --- a/src/contexts/context_traits/session_context_trait.rs +++ b/src/contexts/context_traits/session_context_trait.rs @@ -6,7 +6,7 @@ use sea_orm::DbErr; #[async_trait] pub trait SessionContextTrait: EntityContextTrait { - /// Searches for a token by `Access` or `Refresh` token, + /// Searches for a token by `Access` or `Refresh` token, /// returning [`Some`] if one is found, [`None`] otherwise /// # Errors /// Errors on failed connection, execution error or constraint violations.