Skip to content

Commit

Permalink
fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
Uewotm90 committed Dec 11, 2023
1 parent f18de9a commit 72e7ca7
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/contexts/context_traits/access_context_trait.rs
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ use sea_orm::DbErr;

#[async_trait]
pub trait AccessContextTrait: EntityContextTrait<access::Model> {
/// 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.
Expand Down
4 changes: 2 additions & 2 deletions src/contexts/context_traits/entity_context_trait.rs
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ pub trait EntityContextTrait<T>: 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<T, DbErr>;
/// Searches for an entity by its primary key, returning [`Some`] if an entity is found, [`None`] otherwise
Expand All @@ -25,7 +25,7 @@ pub trait EntityContextTrait<T>: 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<T, DbErr>;
/// Searches for an entity by primary key and deletes it
Expand Down
2 changes: 1 addition & 1 deletion src/contexts/context_traits/session_context_trait.rs
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ use sea_orm::DbErr;

#[async_trait]
pub trait SessionContextTrait: EntityContextTrait<session::Model> {
/// 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.
Expand Down

0 comments on commit 72e7ca7

Please sign in to comment.