Skip to content

implement read-only auth #642

implement read-only auth

implement read-only auth #642

Triggered via pull request January 15, 2025 21:31
Status Success
Total duration 26s
Artifacts

rustfmt.yml

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

Annotations

1 error and 4 warnings
this function takes 3 arguments but 2 arguments were supplied: /home/runner/work/y-sweet/y-sweet/crates/y-sweet-core/src/doc_connection.rs#L49
error[E0061]: this function takes 3 arguments but 2 arguments were supplied --> /home/runner/work/y-sweet/y-sweet/crates/y-sweet-core/src/doc_connection.rs:49:9 | 49 | Self::new_inner(awareness, Arc::new(callback)) | ^^^^^^^^^^^^^^^ ------------------ argument #2 of type `Authorization` is missing | note: associated function defined here --> /home/runner/work/y-sweet/y-sweet/crates/y-sweet-core/src/doc_connection.rs:64:12 | 64 | pub fn new_inner( | ^^^^^^^^^ 65 | awareness: Arc<RwLock<Awareness>>, | --------------------------------- 66 | authorization: Authorization, | ---------------------------- 67 | callback: Callback, | ------------------ help: provide the argument | 49 | Self::new_inner(awareness, /* Authorization */, Arc::new(callback)) | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
check-rust-format
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
the following explicit lifetimes could be elided: 'a: y-sweet-core/src/sync_kv.rs#L132
warning: the following explicit lifetimes could be elided: 'a --> y-sweet-core/src/sync_kv.rs:132:6 | 132 | impl<'a> yrs_kvstore::KVStore<'a> for SyncKv { | ^^ ^^ | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_lifetimes help: elide the lifetimes | 132 - impl<'a> yrs_kvstore::KVStore<'a> for SyncKv { 132 + impl yrs_kvstore::KVStore<'_> for SyncKv { |
the following explicit lifetimes could be elided: 'd: y-sweet-core/src/sync_kv.rs#L93
warning: the following explicit lifetimes could be elided: 'd --> y-sweet-core/src/sync_kv.rs:93:6 | 93 | impl<'d> DocOps<'d> for SyncKv {} | ^^ ^^ | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_lifetimes help: elide the lifetimes | 93 - impl<'d> DocOps<'d> for SyncKv {} 93 + impl DocOps<'_> for SyncKv {} |
the following explicit lifetimes could be elided: 'a: y-sweet-core/src/sync/mod.rs#L308
warning: the following explicit lifetimes could be elided: 'a --> y-sweet-core/src/sync/mod.rs:308:6 | 308 | impl<'a, D: Decoder> Iterator for MessageReader<'a, D> { | ^^ ^^ | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_lifetimes = note: `#[warn(clippy::needless_lifetimes)]` on by default help: elide the lifetimes | 308 - impl<'a, D: Decoder> Iterator for MessageReader<'a, D> { 308 + impl<D: Decoder> Iterator for MessageReader<'_, D> { |