Skip to content

Commit

Permalink
refactor: remove unnecessary bounds
Browse files Browse the repository at this point in the history
  • Loading branch information
LorenzSchueler committed Jun 5, 2024
1 parent 6824eee commit 1705d42
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 20 deletions.
10 changes: 2 additions & 8 deletions sport-log-server/src/db/metcon.rs
Original file line number Diff line number Diff line change
Expand Up @@ -39,10 +39,7 @@ impl GetByUserSync for MetconDb {
user_id: UserId,
last_sync: DateTime<Utc>,
db: &mut AsyncPgConnection,
) -> QueryResult<Vec<<Self as Db>::Type>>
where
Self: Sized,
{
) -> QueryResult<Vec<<Self as Db>::Type>> {
metcon::table
.filter(
metcon::columns::user_id
Expand Down Expand Up @@ -180,10 +177,7 @@ impl GetByUserSync for MetconMovementDb {
user_id: UserId,
last_sync: DateTime<Utc>,
db: &mut AsyncPgConnection,
) -> QueryResult<Vec<<Self as Db>::Type>>
where
Self: Sized,
{
) -> QueryResult<Vec<<Self as Db>::Type>> {
metcon_movement::table
.filter(
metcon_movement::columns::metcon_id.eq_any(
Expand Down
10 changes: 2 additions & 8 deletions sport-log-server/src/db/movement.rs
Original file line number Diff line number Diff line change
Expand Up @@ -49,10 +49,7 @@ impl GetByUserSync for MovementDb {
user_id: UserId,
last_sync: chrono::DateTime<chrono::Utc>,
db: &mut AsyncPgConnection,
) -> QueryResult<Vec<<Self as Db>::Type>>
where
Self: Sized,
{
) -> QueryResult<Vec<<Self as Db>::Type>> {
movement::table
.filter(
movement::columns::user_id
Expand Down Expand Up @@ -314,10 +311,7 @@ impl GetByUserSync for MovementMuscleDb {
user_id: UserId,
last_sync: DateTime<Utc>,
db: &mut AsyncPgConnection,
) -> QueryResult<Vec<<Self as Db>::Type>>
where
Self: Sized,
{
) -> QueryResult<Vec<<Self as Db>::Type>> {
movement_muscle::table
.filter(
movement_muscle::columns::movement_id.eq_any(
Expand Down
5 changes: 1 addition & 4 deletions sport-log-server/src/db/strength.rs
Original file line number Diff line number Diff line change
Expand Up @@ -58,10 +58,7 @@ impl GetByUserSync for StrengthSetDb {
user_id: UserId,
last_sync: DateTime<Utc>,
db: &mut AsyncPgConnection,
) -> QueryResult<Vec<<Self as Db>::Type>>
where
Self: Sized,
{
) -> QueryResult<Vec<<Self as Db>::Type>> {
strength_set::table
.filter(
strength_set::columns::strength_session_id.eq_any(
Expand Down

0 comments on commit 1705d42

Please sign in to comment.