mirror of
https://github.com/AppFlowy-IO/AppFlowy.git
synced 2024-08-30 18:12:39 +00:00
rust fmt
This commit is contained in:
parent
8c54949271
commit
c4088622f8
@ -8,7 +8,7 @@ wrap_comments = true
|
|||||||
use_field_init_shorthand = true
|
use_field_init_shorthand = true
|
||||||
use_try_shorthand = true
|
use_try_shorthand = true
|
||||||
normalize_doc_attributes = true
|
normalize_doc_attributes = true
|
||||||
report_todo = "Always"
|
report_todo = "Never"
|
||||||
report_fixme = "Always"
|
report_fixme = "Always"
|
||||||
imports_layout = "HorizontalVertical"
|
imports_layout = "HorizontalVertical"
|
||||||
imports_granularity = "Crate"
|
imports_granularity = "Crate"
|
||||||
|
@ -1,4 +1,2 @@
|
|||||||
|
|
||||||
mod model;
|
mod model;
|
||||||
pub use model::*;
|
pub use model::*;
|
||||||
|
|
@ -1,7 +1,7 @@
|
|||||||
// Auto-generated, do not edit
|
// Auto-generated, do not edit
|
||||||
|
|
||||||
mod ffi_response;
|
mod ffi_response;
|
||||||
pub use ffi_response::*;
|
pub use ffi_response::*;
|
||||||
|
|
||||||
mod ffi_request;
|
mod ffi_request;
|
||||||
pub use ffi_request::*;
|
pub use ffi_request::*;
|
||||||
|
@ -1,4 +1,2 @@
|
|||||||
|
|
||||||
mod model;
|
mod model;
|
||||||
pub use model::*;
|
pub use model::*;
|
||||||
|
|
@ -1,4 +1,4 @@
|
|||||||
// Auto-generated, do not edit
|
// Auto-generated, do not edit
|
||||||
|
|
||||||
mod subject;
|
mod subject;
|
||||||
pub use subject::*;
|
pub use subject::*;
|
||||||
|
@ -1,4 +1,2 @@
|
|||||||
|
|
||||||
mod model;
|
mod model;
|
||||||
pub use model::*;
|
pub use model::*;
|
||||||
|
|
@ -1,7 +1,7 @@
|
|||||||
// Auto-generated, do not edit
|
// Auto-generated, do not edit
|
||||||
|
|
||||||
mod observable;
|
mod observable;
|
||||||
pub use observable::*;
|
pub use observable::*;
|
||||||
|
|
||||||
mod errors;
|
mod errors;
|
||||||
pub use errors::*;
|
pub use errors::*;
|
||||||
|
@ -1,4 +1,2 @@
|
|||||||
|
|
||||||
mod model;
|
mod model;
|
||||||
pub use model::*;
|
pub use model::*;
|
||||||
|
|
@ -1,19 +1,19 @@
|
|||||||
// Auto-generated, do not edit
|
// Auto-generated, do not edit
|
||||||
|
|
||||||
mod observable;
|
mod observable;
|
||||||
pub use observable::*;
|
pub use observable::*;
|
||||||
|
|
||||||
mod user_table;
|
mod user_table;
|
||||||
pub use user_table::*;
|
pub use user_table::*;
|
||||||
|
|
||||||
mod errors;
|
mod errors;
|
||||||
pub use errors::*;
|
pub use errors::*;
|
||||||
|
|
||||||
mod user_profile;
|
mod user_profile;
|
||||||
pub use user_profile::*;
|
pub use user_profile::*;
|
||||||
|
|
||||||
mod event;
|
mod event;
|
||||||
pub use event::*;
|
pub use event::*;
|
||||||
|
|
||||||
mod auth;
|
mod auth;
|
||||||
pub use auth::*;
|
pub use auth::*;
|
||||||
|
@ -1,4 +1,2 @@
|
|||||||
|
|
||||||
mod model;
|
mod model;
|
||||||
pub use model::*;
|
pub use model::*;
|
||||||
|
|
@ -1,10 +1,10 @@
|
|||||||
// Auto-generated, do not edit
|
// Auto-generated, do not edit
|
||||||
|
|
||||||
mod observable;
|
mod observable;
|
||||||
pub use observable::*;
|
pub use observable::*;
|
||||||
|
|
||||||
mod errors;
|
mod errors;
|
||||||
pub use errors::*;
|
pub use errors::*;
|
||||||
|
|
||||||
mod event;
|
mod event;
|
||||||
pub use event::*;
|
pub use event::*;
|
||||||
|
@ -245,8 +245,6 @@ impl TrashCan {
|
|||||||
|
|
||||||
match result {
|
match result {
|
||||||
Ok(repeated_trash) => {
|
Ok(repeated_trash) => {
|
||||||
// FIXME: User may modify the trash(add/putback) before the flying request comes
|
|
||||||
// back that will cause the trash list to be outdated.
|
|
||||||
notify_trash_changed(repeated_trash);
|
notify_trash_changed(repeated_trash);
|
||||||
},
|
},
|
||||||
Err(e) => log::error!("Save trash failed: {:?}", e),
|
Err(e) => log::error!("Save trash failed: {:?}", e),
|
||||||
|
@ -1,4 +1,2 @@
|
|||||||
|
|
||||||
mod model;
|
mod model;
|
||||||
pub use model::*;
|
pub use model::*;
|
||||||
|
|
@ -1,4 +1,4 @@
|
|||||||
// Auto-generated, do not edit
|
// Auto-generated, do not edit
|
||||||
|
|
||||||
mod kv;
|
mod kv;
|
||||||
pub use kv::*;
|
pub use kv::*;
|
||||||
|
@ -1,5 +1,3 @@
|
|||||||
use std::time::Duration;
|
use std::time::Duration;
|
||||||
|
|
||||||
pub fn jitter(duration: Duration) -> Duration {
|
pub fn jitter(duration: Duration) -> Duration { duration.mul_f64(rand::random::<f64>()) }
|
||||||
duration.mul_f64(rand::random::<f64>())
|
|
||||||
}
|
|
||||||
|
@ -8,7 +8,7 @@ wrap_comments = true
|
|||||||
use_field_init_shorthand = true
|
use_field_init_shorthand = true
|
||||||
use_try_shorthand = true
|
use_try_shorthand = true
|
||||||
normalize_doc_attributes = true
|
normalize_doc_attributes = true
|
||||||
report_todo = "Always"
|
report_todo = "Never"
|
||||||
report_fixme = "Always"
|
report_fixme = "Always"
|
||||||
imports_layout = "HorizontalVertical"
|
imports_layout = "HorizontalVertical"
|
||||||
imports_granularity = "Crate"
|
imports_granularity = "Crate"
|
||||||
|
@ -15,12 +15,12 @@ impl ProtoGen {
|
|||||||
let crate_proto_infos = parse_crate_protobuf(self.rust_source_dirs.clone());
|
let crate_proto_infos = parse_crate_protobuf(self.rust_source_dirs.clone());
|
||||||
write_proto_files(&crate_proto_infos);
|
write_proto_files(&crate_proto_infos);
|
||||||
|
|
||||||
// FIXME: ignore unchanged file to reduce time cost
|
// TODO: ignore unchanged file to reduce time cost
|
||||||
run_rust_protoc(&crate_proto_infos);
|
run_rust_protoc(&crate_proto_infos);
|
||||||
write_rust_crate_mod_file(&crate_proto_infos);
|
write_rust_crate_mod_file(&crate_proto_infos);
|
||||||
write_derive_meta(&crate_proto_infos, self.derive_meta_dir.as_ref());
|
write_derive_meta(&crate_proto_infos, self.derive_meta_dir.as_ref());
|
||||||
|
|
||||||
// FIXME: ignore unchanged file to reduce time cost
|
// TODO: ignore unchanged file to reduce time cost
|
||||||
let flutter_package = FlutterProtobufInfo::new(self.flutter_package_lib.as_ref());
|
let flutter_package = FlutterProtobufInfo::new(self.flutter_package_lib.as_ref());
|
||||||
run_flutter_protoc(&crate_proto_infos, &flutter_package);
|
run_flutter_protoc(&crate_proto_infos, &flutter_package);
|
||||||
write_flutter_protobuf_package_mod_file(&crate_proto_infos, &flutter_package);
|
write_flutter_protobuf_package_mod_file(&crate_proto_infos, &flutter_package);
|
||||||
|
@ -1,4 +1,2 @@
|
|||||||
|
|
||||||
mod model;
|
mod model;
|
||||||
pub use model::*;
|
pub use model::*;
|
||||||
|
|
@ -1,10 +1,10 @@
|
|||||||
// Auto-generated, do not edit
|
// Auto-generated, do not edit
|
||||||
|
|
||||||
mod ws;
|
mod ws;
|
||||||
pub use ws::*;
|
pub use ws::*;
|
||||||
|
|
||||||
mod revision;
|
mod revision;
|
||||||
pub use revision::*;
|
pub use revision::*;
|
||||||
|
|
||||||
mod doc;
|
mod doc;
|
||||||
pub use doc::*;
|
pub use doc::*;
|
||||||
|
@ -1,4 +1,2 @@
|
|||||||
|
|
||||||
mod model;
|
mod model;
|
||||||
pub use model::*;
|
pub use model::*;
|
||||||
|
|
@ -1,10 +1,10 @@
|
|||||||
// Auto-generated, do not edit
|
// Auto-generated, do not edit
|
||||||
|
|
||||||
mod errors;
|
mod errors;
|
||||||
pub use errors::*;
|
pub use errors::*;
|
||||||
|
|
||||||
mod user_profile;
|
mod user_profile;
|
||||||
pub use user_profile::*;
|
pub use user_profile::*;
|
||||||
|
|
||||||
mod auth;
|
mod auth;
|
||||||
pub use auth::*;
|
pub use auth::*;
|
||||||
|
@ -0,0 +1 @@
|
|||||||
|
|
@ -1,4 +1,2 @@
|
|||||||
|
|
||||||
mod model;
|
mod model;
|
||||||
pub use model::*;
|
pub use model::*;
|
||||||
|
|
@ -1,40 +1,40 @@
|
|||||||
// Auto-generated, do not edit
|
// Auto-generated, do not edit
|
||||||
|
|
||||||
mod view_update;
|
mod view_update;
|
||||||
pub use view_update::*;
|
pub use view_update::*;
|
||||||
|
|
||||||
mod workspace_setting;
|
mod workspace_setting;
|
||||||
pub use workspace_setting::*;
|
pub use workspace_setting::*;
|
||||||
|
|
||||||
mod app_query;
|
mod app_query;
|
||||||
pub use app_query::*;
|
pub use app_query::*;
|
||||||
|
|
||||||
mod errors;
|
mod errors;
|
||||||
pub use errors::*;
|
pub use errors::*;
|
||||||
|
|
||||||
mod workspace_update;
|
mod workspace_update;
|
||||||
pub use workspace_update::*;
|
pub use workspace_update::*;
|
||||||
|
|
||||||
mod app_create;
|
mod app_create;
|
||||||
pub use app_create::*;
|
pub use app_create::*;
|
||||||
|
|
||||||
mod workspace_query;
|
mod workspace_query;
|
||||||
pub use workspace_query::*;
|
pub use workspace_query::*;
|
||||||
|
|
||||||
mod view_create;
|
mod view_create;
|
||||||
pub use view_create::*;
|
pub use view_create::*;
|
||||||
|
|
||||||
mod workspace_create;
|
mod workspace_create;
|
||||||
pub use workspace_create::*;
|
pub use workspace_create::*;
|
||||||
|
|
||||||
mod app_update;
|
mod app_update;
|
||||||
pub use app_update::*;
|
pub use app_update::*;
|
||||||
|
|
||||||
mod view_query;
|
mod view_query;
|
||||||
pub use view_query::*;
|
pub use view_query::*;
|
||||||
|
|
||||||
mod trash_create;
|
mod trash_create;
|
||||||
pub use trash_create::*;
|
pub use trash_create::*;
|
||||||
|
|
||||||
mod export;
|
mod export;
|
||||||
pub use export::*;
|
pub use export::*;
|
||||||
|
@ -1,4 +1,2 @@
|
|||||||
|
|
||||||
mod model;
|
mod model;
|
||||||
pub use model::*;
|
pub use model::*;
|
||||||
|
|
@ -1,7 +1,7 @@
|
|||||||
// Auto-generated, do not edit
|
// Auto-generated, do not edit
|
||||||
|
|
||||||
mod errors;
|
mod errors;
|
||||||
pub use errors::*;
|
pub use errors::*;
|
||||||
|
|
||||||
mod msg;
|
mod msg;
|
||||||
pub use msg::*;
|
pub use msg::*;
|
||||||
|
@ -1,4 +1,3 @@
|
|||||||
[toolchain]
|
[toolchain]
|
||||||
#rustup override set nightly-2021-04-24
|
#rustup override set nightly-2021-04-24
|
||||||
channel = "nightly-2021-04-24"
|
channel = "nightly-2021-04-24"
|
||||||
targets = [ "aarch64-apple-darwin", "x86_64-apple-darwin", "aarch64-apple-ios", "x86_64-apple-ios" ]
|
|
@ -8,7 +8,7 @@ wrap_comments = true
|
|||||||
use_field_init_shorthand = true
|
use_field_init_shorthand = true
|
||||||
use_try_shorthand = true
|
use_try_shorthand = true
|
||||||
normalize_doc_attributes = true
|
normalize_doc_attributes = true
|
||||||
report_todo = "Always"
|
report_todo = "Never"
|
||||||
report_fixme = "Always"
|
report_fixme = "Always"
|
||||||
imports_layout = "HorizontalVertical"
|
imports_layout = "HorizontalVertical"
|
||||||
imports_granularity = "Crate"
|
imports_granularity = "Crate"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user