Derive Copy where possible (#3577)

For database-specific types.
This commit is contained in:
Gabriel Lopes Veiga 2024-11-27 19:49:08 -03:00 committed by GitHub
parent 35f3ec1944
commit 3e140ba384
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 2 additions and 2 deletions

View file

@ -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,

View file

@ -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>,