mirror of
https://github.com/AppFlowy-IO/AppFlowy.git
synced 2024-08-30 18:12:39 +00:00
chore: fix warnings
This commit is contained in:
parent
f5b140a4d9
commit
ac584fb7ef
@ -5,7 +5,6 @@ import 'package:flowy_infra_ui/style_widget/scrolling/styled_list.dart';
|
||||
import 'package:flowy_infra_ui/style_widget/scrolling/styled_scroll_bar.dart';
|
||||
import 'package:flowy_infra_ui/style_widget/scrolling/styled_scrollview.dart';
|
||||
import 'package:flowy_infra_ui/widget/error_page.dart';
|
||||
import 'package:flowy_sdk/log.dart';
|
||||
import 'package:flowy_sdk/protobuf/flowy-folder-data-model/view.pb.dart';
|
||||
import 'package:flowy_sdk/protobuf/flowy-grid-data-model/grid.pb.dart' show Field;
|
||||
import 'package:flutter_bloc/flutter_bloc.dart';
|
||||
|
@ -190,11 +190,10 @@ impl std::default::Default for TimeFormat {
|
||||
|
||||
#[cfg(test)]
|
||||
mod tests {
|
||||
use crate::services::field::DateTypeOption;
|
||||
use crate::services::field::FieldBuilder;
|
||||
use crate::services::field::{DateFormat, DateTypeOption, TimeFormat};
|
||||
use crate::services::row::{CellDataOperation, TypeOptionCellData};
|
||||
use crate::services::row::CellDataOperation;
|
||||
use flowy_grid_data_model::entities::FieldType;
|
||||
use strum::IntoEnumIterator;
|
||||
|
||||
#[test]
|
||||
fn date_description_invalid_input_test() {
|
||||
@ -287,7 +286,7 @@ mod tests {
|
||||
type_option.apply_changeset("he", None).unwrap();
|
||||
}
|
||||
|
||||
fn data(s: &str) -> String {
|
||||
TypeOptionCellData::new(s, FieldType::DateTime).json()
|
||||
}
|
||||
// fn data(s: &str) -> String {
|
||||
// TypeOptionCellData::new(s, FieldType::DateTime).json()
|
||||
// }
|
||||
}
|
||||
|
@ -65,10 +65,6 @@ impl CellDataOperation for RichTextTypeOption {
|
||||
|
||||
#[cfg(test)]
|
||||
mod tests {
|
||||
use crate::services::field::FieldBuilder;
|
||||
use crate::services::field::*;
|
||||
use crate::services::row::{CellDataOperation, TypeOptionCellData};
|
||||
use flowy_grid_data_model::entities::FieldType;
|
||||
|
||||
// #[test]
|
||||
// fn text_description_test() {
|
||||
|
@ -19,7 +19,7 @@ pub fn create_default_workspace() -> Workspace {
|
||||
};
|
||||
|
||||
Workspace {
|
||||
id: workspace_id.to_string(),
|
||||
id: workspace_id,
|
||||
name,
|
||||
desc,
|
||||
apps,
|
||||
@ -38,7 +38,7 @@ fn create_default_app(workspace_id: String, time: chrono::DateTime<Utc>) -> App
|
||||
};
|
||||
|
||||
App {
|
||||
id: app_id.to_string(),
|
||||
id: app_id,
|
||||
workspace_id,
|
||||
name,
|
||||
desc,
|
||||
@ -56,7 +56,7 @@ fn create_default_view(app_id: String, time: chrono::DateTime<Utc>) -> View {
|
||||
let data_type = ViewDataType::TextBlock;
|
||||
|
||||
View {
|
||||
id: view_id.to_string(),
|
||||
id: view_id,
|
||||
belong_to_id: app_id,
|
||||
name,
|
||||
desc,
|
||||
|
@ -12,14 +12,3 @@ fn grid_default_serde_test() {
|
||||
let json = serde_json::to_string(&grid).unwrap();
|
||||
assert_eq!(json, r#"{"grid_id":"1","fields":[],"blocks":[]}"#)
|
||||
}
|
||||
|
||||
fn create_field(field_id: &str) -> FieldMeta {
|
||||
let mut field = FieldMeta::new("Text Field", "", FieldType::RichText);
|
||||
field.id = field_id.to_string();
|
||||
field
|
||||
}
|
||||
|
||||
#[allow(dead_code)]
|
||||
fn uuid() -> String {
|
||||
uuid::Uuid::new_v4().to_string()
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user