Skip to content

Commit e114e85

Browse files
committed
chore: rename trait funcs
1 parent 7c18835 commit e114e85

File tree

12 files changed

+12
-12
lines changed

12 files changed

+12
-12
lines changed

collab-database/src/fields/type_option/date_type_option.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -353,7 +353,7 @@ pub struct DateCellData {
353353
pub reminder_id: String,
354354
}
355355
impl TypeOptionCellData for DateCellData {
356-
fn is_empty(&self) -> bool {
356+
fn is_cell_empty(&self) -> bool {
357357
self.timestamp.is_none()
358358
}
359359
}

collab-database/src/fields/type_option/media_type_option.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ pub struct MediaCellData {
8282
}
8383

8484
impl TypeOptionCellData for MediaCellData {
85-
fn is_empty(&self) -> bool {
85+
fn is_cell_empty(&self) -> bool {
8686
self.files.is_empty()
8787
}
8888
}

collab-database/src/fields/type_option/select_type_option.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -292,7 +292,7 @@ impl SelectOptionIds {
292292
}
293293

294294
impl TypeOptionCellData for SelectOptionIds {
295-
fn is_empty(&self) -> bool {
295+
fn is_cell_empty(&self) -> bool {
296296
self.0.is_empty()
297297
}
298298
}

collab-database/src/fields/type_option/url_type_option.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ pub struct URLCellData {
6464
}
6565

6666
impl TypeOptionCellData for URLCellData {
67-
fn is_empty(&self) -> bool {
67+
fn is_cell_empty(&self) -> bool {
6868
self.data.is_empty()
6969
}
7070
}

collab-database/src/template/check_list_parse.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ impl From<ChecklistCellData> for Cell {
5454
}
5555

5656
impl TypeOptionCellData for ChecklistCellData {
57-
fn is_empty(&self) -> bool {
57+
fn is_cell_empty(&self) -> bool {
5858
self.options.is_empty()
5959
}
6060
}

collab-database/src/template/number_parse.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ use serde::{Deserialize, Serialize};
99
pub struct NumberCellData(pub String);
1010

1111
impl TypeOptionCellData for NumberCellData {
12-
fn is_empty(&self) -> bool {
12+
fn is_cell_empty(&self) -> bool {
1313
self.0.is_empty()
1414
}
1515
}

collab-database/src/template/relation_parse.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ pub struct RelationCellData {
1313
}
1414

1515
impl TypeOptionCellData for RelationCellData {
16-
fn is_empty(&self) -> bool {
16+
fn is_cell_empty(&self) -> bool {
1717
self.row_ids.is_empty()
1818
}
1919
}

collab-database/src/template/summary_parse.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ use serde::{Deserialize, Serialize};
99
pub struct SummaryCellData(pub String);
1010

1111
impl TypeOptionCellData for SummaryCellData {
12-
fn is_empty(&self) -> bool {
12+
fn is_cell_empty(&self) -> bool {
1313
self.0.is_empty()
1414
}
1515
}

collab-database/src/template/time_parse.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ use serde::{Deserialize, Serialize};
99
pub struct TimeCellData(pub Option<i64>);
1010

1111
impl TypeOptionCellData for TimeCellData {
12-
fn is_empty(&self) -> bool {
12+
fn is_cell_empty(&self) -> bool {
1313
self.0.is_none()
1414
}
1515
}

collab-database/src/template/timestamp_parse.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ pub struct TimestampCellData {
1212
}
1313

1414
impl TypeOptionCellData for TimestampCellData {
15-
fn is_empty(&self) -> bool {
15+
fn is_cell_empty(&self) -> bool {
1616
self.timestamp.is_none()
1717
}
1818
}

0 commit comments

Comments
 (0)