Support for Tauri Events #48
Annotations
5 errors and 18 warnings
build (macos-latest)
Process completed with exit code 101.
|
build (windows-latest)
The job was canceled because "macos-latest" failed.
|
build (windows-latest)
The operation was canceled.
|
build (ubuntu-latest)
The job was canceled because "macos-latest" failed.
|
build (ubuntu-latest)
The operation was canceled.
|
used `unwrap()` on a `Result` value:
src/lib.rs#L335
warning: used `unwrap()` on a `Result` value
--> src/lib.rs:335:42
|
335 | let (invoke_handler, registry) = self.export_inner().unwrap();
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= help: if you don't want to handle the `Err` case gracefully, consider using `expect()` to provide a better panic message
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unwrap_used
note: the lint level is defined here
--> src/lib.rs:91:22
|
91 | #![warn(clippy::all, clippy::unwrap_used, clippy::panic
| ^^^^^^^^^^^^^^^^^^^
|
this expression creates a reference which is immediately dereferenced by the compiler:
src/ts.rs#L179
warning: this expression creates a reference which is immediately dereferenced by the compiler
--> src/ts.rs:179:63
|
179 | .map(|v| ts::export_named_datatype(&cfg.inner, v, &type_map))
| ^^^^^^^^^ help: change this to: `type_map`
|
= 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/ts.rs#L174
warning: this expression creates a reference which is immediately dereferenced by the compiler
--> src/ts.rs:174:50
|
174 | let events = Self::render_events(events, &type_map, cfg)?;
| ^^^^^^^^^ help: change this to: `type_map`
|
= 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/ts.rs#L173
warning: this expression creates a reference which is immediately dereferenced by the compiler
--> src/ts.rs:173:56
|
173 | let commands = Self::render_commands(commands, &type_map, cfg)?;
| ^^^^^^^^^ help: change this to: `type_map`
|
= 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/ts.rs#L60
warning: this expression creates a reference which is immediately dereferenced by the compiler
--> src/ts.rs:60:57
|
60 | ... ts::datatype(&cfg.inner, e, &type_map)?
| ^^^^^^^^^ help: change this to: `type_map`
|
= 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/ts.rs#L51
warning: this expression creates a reference which is immediately dereferenced by the compiler
--> src/ts.rs:51:54
|
51 | t => ts::datatype(&cfg.inner, t, &type_map)?,
| ^^^^^^^^^ help: change this to: `type_map`
|
= 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/ts.rs#L49
warning: this expression creates a reference which is immediately dereferenced by the compiler
--> src/ts.rs:49:53
|
49 | ts::datatype(&cfg.inner, t, &type_map)?
| ^^^^^^^^^ help: change this to: `type_map`
|
= 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/ts.rs#L39
warning: this expression creates a reference which is immediately dereferenced by the compiler
--> src/ts.rs:39:55
|
39 | ts::datatype(&cfg.inner, typ, &type_map)
| ^^^^^^^^^ help: change this to: `type_map`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow
|
this `.into_iter()` call is equivalent to `.iter()` and will not consume the `slice`:
src/ts.rs#L29
warning: this `.into_iter()` call is equivalent to `.iter()` and will not consume the `slice`
--> src/ts.rs:29:14
|
29 | .into_iter()
| ^^^^^^^^^ help: call directly: `iter`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#into_iter_on_ref
|
this expression creates a reference which is immediately dereferenced by the compiler:
src/js.rs#L183
warning: this expression creates a reference which is immediately dereferenced by the compiler
--> src/js.rs:183:51
|
183 | ts::named_datatype(&cfg.inner, v, &type_map).map(|typ| {
| ^^^^^^^^^ help: change this to: `type_map`
|
= 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/js.rs#L177
warning: this expression creates a reference which is immediately dereferenced by the compiler
--> src/js.rs:177:50
|
177 | let events = Self::render_events(events, &type_map, cfg)?;
| ^^^^^^^^^ help: change this to: `type_map`
|
= 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/js.rs#L176
warning: this expression creates a reference which is immediately dereferenced by the compiler
--> src/js.rs:176:56
|
176 | let commands = Self::render_commands(commands, &type_map, cfg)?;
| ^^^^^^^^^ help: change this to: `type_map`
|
= 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/js.rs#L58
warning: this expression creates a reference which is immediately dereferenced by the compiler
--> src/js.rs:58:59
|
58 | ... ts::datatype(&cfg.inner, typ, &type_map).map(|typ| {
| ^^^^^^^^^ help: change this to: `type_map`
|
= 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/js.rs#L51
warning: this expression creates a reference which is immediately dereferenced by the compiler
--> src/js.rs:51:58
|
51 | t => ts::datatype(&cfg.inner, t, &type_map)?,
| ^^^^^^^^^ help: change this to: `type_map`
|
= 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/js.rs#L48
warning: this expression creates a reference which is immediately dereferenced by the compiler
--> src/js.rs:48:61
|
48 | ... ts::datatype(&cfg.inner, e, &type_map)?
| ^^^^^^^^^ help: change this to: `type_map`
|
= 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/js.rs#L47
warning: this expression creates a reference which is immediately dereferenced by the compiler
--> src/js.rs:47:61
|
47 | ... ts::datatype(&cfg.inner, t, &type_map)?,
| ^^^^^^^^^ help: change this to: `type_map`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow
= note: `#[warn(clippy::needless_borrow)]` implied by `#[warn(clippy::all)]`
|
this `.into_iter()` call is equivalent to `.iter()` and will not consume the `slice`:
src/js.rs#L28
warning: this `.into_iter()` call is equivalent to `.iter()` and will not consume the `slice`
--> src/js.rs:28:14
|
28 | .into_iter()
| ^^^^^^^^^ help: call directly: `iter`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#into_iter_on_ref
note: the lint level is defined here
--> src/lib.rs:91:9
|
91 | #![warn(clippy::all, clippy::unwrap_used, clippy::panic
| ^^^^^^^^^^^
= note: `#[warn(clippy::into_iter_on_ref)]` implied by `#[warn(clippy::all)]`
|
clippy
The following actions uses node12 which is deprecated and will be forced to run on node16: actions-rs/clippy-check@v1. For more info: https://github.blog/changelog/2023-06-13-github-actions-all-actions-will-run-on-node16-instead-of-node12-by-default/
|