Skip to content

Commit

Permalink
Derive Copy where possible
Browse files Browse the repository at this point in the history
For database-specific types.
  • Loading branch information
veigaribo committed Oct 25, 2024
1 parent 028084b commit fc45338
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion sqlx-postgres/src/types/interval.rs
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ use crate::{PgArgumentBuffer, PgHasArrayType, PgTypeInfo, PgValueFormat, PgValue

// `PgInterval` is available for direct access to the INTERVAL type

#[derive(Debug, Eq, PartialEq, Clone, Hash, Default)]
#[derive(Debug, Eq, PartialEq, Clone, Copy, Hash, Default)]
pub struct PgInterval {
pub months: i32,
pub days: i32,
Expand Down
2 changes: 1 addition & 1 deletion sqlx-postgres/src/types/range.rs
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ bitflags! {
}
}

#[derive(Debug, PartialEq, Eq, Clone)]
#[derive(Debug, PartialEq, Eq, Clone, Copy)]
pub struct PgRange<T> {
pub start: Bound<T>,
pub end: Bound<T>,
Expand Down

0 comments on commit fc45338

Please sign in to comment.