Skip to content

Commit 3e140ba

Browse files
authored
Derive Copy where possible (#3577)
For database-specific types.
1 parent 35f3ec1 commit 3e140ba

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

sqlx-postgres/src/types/interval.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ use crate::{PgArgumentBuffer, PgHasArrayType, PgTypeInfo, PgValueFormat, PgValue
1010

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

13-
#[derive(Debug, Eq, PartialEq, Clone, Hash, Default)]
13+
#[derive(Debug, Eq, PartialEq, Clone, Copy, Hash, Default)]
1414
pub struct PgInterval {
1515
pub months: i32,
1616
pub days: i32,

sqlx-postgres/src/types/range.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ bitflags! {
2626
}
2727
}
2828

29-
#[derive(Debug, PartialEq, Eq, Clone)]
29+
#[derive(Debug, PartialEq, Eq, Clone, Copy)]
3030
pub struct PgRange<T> {
3131
pub start: Bound<T>,
3232
pub end: Bound<T>,

0 commit comments

Comments
 (0)