forked from 1b-agent/opencadstudio-upstream
style: apply cargo fmt across workspace
This commit is contained in:
1 parent
85710e5454
commit
9cf9ff2c5c
531 files changed
+57740
-33906
No files matched your search
+4
-11
@@ -55,10 +55,7 @@ pub(super) async fn parse_document(
|
||||
let bytes = Uint8Array::new(&value).to_vec();
|
||||
let payload: (
|
||||
u16,
|
||||
Result<
|
||||
codec::ReadOutcome,
|
||||
(String, Option<codec::ReadStats>),
|
||||
>,
|
||||
Result<codec::ReadOutcome, (String, Option<codec::ReadStats>)>,
|
||||
Option<String>,
|
||||
bool,
|
||||
Vec<EntityRuntimeFields>,
|
||||
@@ -72,10 +69,7 @@ pub(super) async fn parse_document(
|
||||
}
|
||||
match payload.1 {
|
||||
Ok(mut outcome) => {
|
||||
restore_entity_runtime_fields(
|
||||
&mut outcome.document,
|
||||
payload.4,
|
||||
);
|
||||
restore_entity_runtime_fields(&mut outcome.document, payload.4);
|
||||
Ok((outcome, payload.2))
|
||||
}
|
||||
Err((message, read_stats)) => Err(super::OpenLoadError {
|
||||
@@ -172,9 +166,8 @@ pub(super) async fn sha256_document(bytes: &[u8]) -> Result<String, super::OpenL
|
||||
let worker = Worker::new_with_options(WORKER_URL, &options)
|
||||
.map_err(|error| super::OpenLoadError::from(js_error(error)))?;
|
||||
|
||||
let (sender, receiver) = iced::futures::channel::oneshot::channel::<
|
||||
Result<String, super::OpenLoadError>,
|
||||
>();
|
||||
let (sender, receiver) =
|
||||
iced::futures::channel::oneshot::channel::<Result<String, super::OpenLoadError>>();
|
||||
let sender = Rc::new(RefCell::new(Some(sender)));
|
||||
let message_sender = sender.clone();
|
||||
let on_message = Closure::<dyn FnMut(MessageEvent)>::new(move |event: MessageEvent| {
|
||||
|
||||
Reference in new issue
Block a user