Skip to content

Fix document creation race condition #481

Fix document creation race condition

Fix document creation race condition #481

Triggered via pull request April 16, 2024 13:23
Status Success
Total duration 24s
Artifacts

rustfmt.yml

on: pull_request
check-rust-format
13s
check-rust-format
Fit to window
Zoom out
Zoom in

Annotations

3 warnings
this expression creates a reference which is immediately dereferenced by the compiler: src/lib.rs#L266
warning: this expression creates a reference which is immediately dereferenced by the compiler --> src/lib.rs:266:44 | 266 | let stub = durable_object.id_from_name(&doc_id)?.get_stub()?; | ^^^^^^^ help: change this to: `doc_id` | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow
this expression creates a reference which is immediately dereferenced by the compiler: src/lib.rs#L122
warning: this expression creates a reference which is immediately dereferenced by the compiler --> src/lib.rs:122:65 | 122 | ResponseBody::Body(body) => String::from_utf8_lossy(&body).to_string(), | ^^^^^ help: change this to: `body` | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow = note: `#[warn(clippy::needless_borrow)]` on by default
useless conversion to the same type: `worker::Env`: src/durable_object.rs#L86
warning: useless conversion to the same type: `worker::Env` --> src/durable_object.rs:86:24 | 86 | let env: Env = self.env.clone().into(); | ^^^^^^^^^^^^^^^^^^^^^^^ help: consider removing `.into()`: `self.env.clone()` | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#useless_conversion = note: `#[warn(clippy::useless_conversion)]` on by default