Skip to content

Commit 43bda76

Browse files
authored
Fixed warnings (#1526)
1 parent 9120fc5 commit 43bda76

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

pgml-sdks/pgml/src/models.rs

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ use crate::types::{DateTime, Json};
88
// A multi field pipeline
99
#[enum_def]
1010
#[derive(FromRow)]
11+
#[allow(dead_code)]
1112
pub struct Pipeline {
1213
pub id: i64,
1314
pub name: String,
@@ -19,6 +20,7 @@ pub struct Pipeline {
1920
// A model used to perform some task
2021
#[enum_def]
2122
#[derive(FromRow)]
23+
#[allow(dead_code)]
2224
pub struct Model {
2325
pub id: i64,
2426
pub created_at: DateTime,
@@ -29,6 +31,7 @@ pub struct Model {
2931
// A text splitter
3032
#[enum_def]
3133
#[derive(FromRow)]
34+
#[allow(dead_code)]
3235
pub struct Splitter {
3336
pub id: i64,
3437
pub created_at: DateTime,
@@ -63,6 +66,7 @@ impl Document {
6366
// A collection of documents
6467
#[enum_def]
6568
#[derive(FromRow)]
69+
#[allow(dead_code)]
6670
pub struct Collection {
6771
pub id: i64,
6872
pub created_at: DateTime,
@@ -74,6 +78,7 @@ pub struct Collection {
7478
// An embedding
7579
#[enum_def]
7680
#[derive(FromRow)]
81+
#[allow(dead_code)]
7782
pub struct Embedding {
7883
pub id: i64,
7984
pub created_at: DateTime,
@@ -83,6 +88,7 @@ pub struct Embedding {
8388

8489
// A chunk of split text
8590
#[derive(FromRow)]
91+
#[allow(dead_code)]
8692
pub struct Chunk {
8793
pub id: i64,
8894
pub created_at: DateTime,
@@ -93,6 +99,7 @@ pub struct Chunk {
9399

94100
// A tsvector of a document
95101
#[derive(FromRow)]
102+
#[allow(dead_code)]
96103
pub struct TSVector {
97104
pub id: i64,
98105
pub created_at: DateTime,

pgml-sdks/pgml/src/pipeline.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -175,6 +175,7 @@ impl From<Json> for InvividualSyncStatus {
175175
}
176176

177177
#[derive(Debug, Clone)]
178+
#[allow(dead_code)]
178179
pub struct PipelineDatabaseData {
179180
pub id: i64,
180181
pub created_at: DateTime,

0 commit comments

Comments
 (0)