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_try_shorthand = true
|
||||
normalize_doc_attributes = true
|
||||
report_todo = "Always"
|
||||
report_todo = "Never"
|
||||
report_fixme = "Always"
|
||||
imports_layout = "HorizontalVertical"
|
||||
imports_granularity = "Crate"
|
||||
|
@ -1,4 +1,2 @@
|
||||
|
||||
mod model;
|
||||
pub use model::*;
|
||||
|
@ -1,4 +1,2 @@
|
||||
|
||||
mod model;
|
||||
pub use model::*;
|
||||
|
@ -1,4 +1,2 @@
|
||||
|
||||
mod model;
|
||||
pub use model::*;
|
||||
|
@ -1,4 +1,2 @@
|
||||
|
||||
mod model;
|
||||
pub use model::*;
|
||||
|
@ -1,4 +1,2 @@
|
||||
|
||||
mod model;
|
||||
pub use model::*;
|
||||
|
@ -245,8 +245,6 @@ impl TrashCan {
|
||||
|
||||
match result {
|
||||
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);
|
||||
},
|
||||
Err(e) => log::error!("Save trash failed: {:?}", e),
|
||||
|
@ -1,4 +1,2 @@
|
||||
|
||||
mod model;
|
||||
pub use model::*;
|
||||
|
@ -1,5 +1,3 @@
|
||||
use std::time::Duration;
|
||||
|
||||
pub fn jitter(duration: Duration) -> Duration {
|
||||
duration.mul_f64(rand::random::<f64>())
|
||||
}
|
||||
pub fn jitter(duration: Duration) -> Duration { duration.mul_f64(rand::random::<f64>()) }
|
||||
|
@ -8,7 +8,7 @@ wrap_comments = true
|
||||
use_field_init_shorthand = true
|
||||
use_try_shorthand = true
|
||||
normalize_doc_attributes = true
|
||||
report_todo = "Always"
|
||||
report_todo = "Never"
|
||||
report_fixme = "Always"
|
||||
imports_layout = "HorizontalVertical"
|
||||
imports_granularity = "Crate"
|
||||
|
@ -15,12 +15,12 @@ impl ProtoGen {
|
||||
let crate_proto_infos = parse_crate_protobuf(self.rust_source_dirs.clone());
|
||||
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);
|
||||
write_rust_crate_mod_file(&crate_proto_infos);
|
||||
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());
|
||||
run_flutter_protoc(&crate_proto_infos, &flutter_package);
|
||||
write_flutter_protobuf_package_mod_file(&crate_proto_infos, &flutter_package);
|
||||
|
@ -1,4 +1,2 @@
|
||||
|
||||
mod model;
|
||||
pub use model::*;
|
||||
|
@ -1,4 +1,2 @@
|
||||
|
||||
mod model;
|
||||
pub use model::*;
|
||||
|
@ -0,0 +1 @@
|
||||
|
@ -1,4 +1,2 @@
|
||||
|
||||
mod model;
|
||||
pub use model::*;
|
||||
|
@ -1,4 +1,2 @@
|
||||
|
||||
mod model;
|
||||
pub use model::*;
|
||||
|
@ -1,4 +1,3 @@
|
||||
[toolchain]
|
||||
#rustup override set 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_try_shorthand = true
|
||||
normalize_doc_attributes = true
|
||||
report_todo = "Always"
|
||||
report_todo = "Never"
|
||||
report_fixme = "Always"
|
||||
imports_layout = "HorizontalVertical"
|
||||
imports_granularity = "Crate"
|
||||
|
Loading…
x
Reference in New Issue
Block a user