Skip to content

Commit 9f47965

Browse files
authored
Derive Debug and Copy for NewKeyword
1 parent fe1783d commit 9f47965

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/keyword.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ impl Keyword {
5151
use diesel::pg::upsert::*;
5252
use diesel::expression::dsl::any;
5353

54-
#[derive(Insertable, Debug)]
54+
#[derive(Insertable, Debug, Clone, Copy)]
5555
#[table_name = "keywords"]
5656
struct NewKeyword<'a> {
5757
keyword: &'a str,
@@ -198,7 +198,7 @@ mod tests {
198198
use diesel;
199199
use diesel::connection::SimpleConnection;
200200

201-
#[derive(Insertable)]
201+
#[derive(Insertable, Debug, Clone, Copy)]
202202
#[table_name = "keywords"]
203203
struct NewKeyword<'a> {
204204
keyword: &'a str,

0 commit comments

Comments
 (0)