Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

remove tauri-specta plugin #82

Merged
merged 1 commit into from
Apr 4, 2024

remove tauri-specta plugin

af1dc34
Select commit
Loading
Failed to load commit list.
Sign in for the full log view
Merged

remove tauri-specta plugin #82

remove tauri-specta plugin
af1dc34
Select commit
Loading
Failed to load commit list.
GitHub Actions / clippy succeeded Apr 2, 2024 in 0s

clippy

31 warnings

Details

Results

Message level Amount
Internal compiler error 0
Error 0
Warning 31
Note 0
Help 0

Versions

  • rustc 1.77.1 (7cf61ebde 2024-03-27)
  • cargo 1.77.1 (e52e36006 2024-03-26)
  • clippy 0.1.77 (7cf61eb 2024-03-27)

Annotations

Check warning on line 446 in src/lib.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

this function has an empty `#[must_use]` attribute, but returns a type already marked as `#[must_use]`

warning: this function has an empty `#[must_use]` attribute, but returns a type already marked as `#[must_use]`
   --> src/lib.rs:444:5
    |
444 | /     pub fn build<TManager: Manager<TCommands::Runtime>>(
445 | |         self,
446 | |     ) -> Result<(TCommands::InvokeHandler, impl FnOnce(&TManager)), TLang::Error> {
    | |_________________________________________________________________________________^
    |
    = help: either add some descriptive text or remove the attribute
    = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#double_must_use

Check warning on line 430 in src/lib.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

this function has an empty `#[must_use]` attribute, but returns a type already marked as `#[must_use]`

warning: this function has an empty `#[must_use]` attribute, but returns a type already marked as `#[must_use]`
   --> src/lib.rs:427:5
    |
427 | /     pub fn build_plugin_utils<TManager: Manager<TCommands::Runtime>>(
428 | |         mut self,
429 | |         plugin_name: &'static str,
430 | |     ) -> Result<(TCommands::InvokeHandler, impl FnOnce(&TManager)), TLang::Error> {
    | |_________________________________________________________________________________^
    |
    = help: either add some descriptive text or remove the attribute
    = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#double_must_use

Check warning on line 416 in src/lib.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

this function has an empty `#[must_use]` attribute, but returns a type already marked as `#[must_use]`

warning: this function has an empty `#[must_use]` attribute, but returns a type already marked as `#[must_use]`
   --> src/lib.rs:416:5
    |
416 |     pub fn build(self) -> Result<TCommands::InvokeHandler, TLang::Error> {
    |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    |
    = help: either add some descriptive text or remove the attribute
    = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#double_must_use

Check warning on line 407 in src/lib.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

this function has an empty `#[must_use]` attribute, but returns a type already marked as `#[must_use]`

warning: this function has an empty `#[must_use]` attribute, but returns a type already marked as `#[must_use]`
   --> src/lib.rs:404:5
    |
404 | /     pub fn build_plugin_utils(
405 | |         mut self,
406 | |         plugin_name: &'static str,
407 | |     ) -> Result<TCommands::InvokeHandler, TLang::Error> {
    | |_______________________________________________________^
    |
    = help: either add some descriptive text or remove the attribute
    = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#double_must_use
    = note: `#[warn(clippy::double_must_use)]` implied by `#[warn(clippy::all)]`

Check warning on line 372 in src/lib.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

very complex type used. Consider factoring parts into `type` definitions

warning: very complex type used. Consider factoring parts into `type` definitions
   --> src/lib.rs:372:24
    |
372 |     fn render(self) -> Result<(String, (TCommands::InvokeHandler, EventCollection)), TLang::Error> {
    |                        ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    |
    = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#type_complexity
    = note: `#[warn(clippy::type_complexity)]` implied by `#[warn(clippy::all)]`

Check warning on line 86 in src/event.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

`panic` should not be present in production code

warning: `panic` should not be present in production code
  --> src/event.rs:86:28
   |
86 |         .unwrap_or_else(|| panic!("Event {name} not found in registry!"))
   |                            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
   |
   = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#panic

Check warning on line 35 in src/event.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

`panic` should not be present in production code

warning: `panic` should not be present in production code
  --> src/event.rs:35:13
   |
35 |             panic!("Another event with name {} is already registered!", E::NAME)
   |             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
   |
   = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#panic

Check warning on line 31 in src/event.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

`panic` should not be present in production code

warning: `panic` should not be present in production code
   --> src/event.rs:31:13
    |
31  |             panic!("Event {} registered twice!", E::NAME)
    |             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    |
    = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#panic
note: the lint level is defined here
   --> src/lib.rs:111:43
    |
111 | #![warn(clippy::all, clippy::unwrap_used, clippy::panic
    |                                           ^^^^^^^^^^^^^

Check warning on line 56 in src/ts.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

single-character string constant used as pattern

warning: single-character string constant used as pattern
  --> src/ts.rs:56:60
   |
56 |                         builder.extend(function.docs.split("\n"));
   |                                                            ^^^^ help: consider using a `char`: `'\n'`
   |
   = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#single_char_pattern

Check warning on line 43 in src/js.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

single-character string constant used as pattern

warning: single-character string constant used as pattern
  --> src/js.rs:43:60
   |
43 |                         builder.extend(function.docs.split("\n"));
   |                                                            ^^^^ help: consider using a `char`: `'\n'`
   |
   = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#single_char_pattern
   = note: `#[warn(clippy::single_char_pattern)]` implied by `#[warn(clippy::all)]`

Check warning on line 87 in src/lib.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

unit tests in doctest are not executed

warning: unit tests in doctest are not executed
  --> src/lib.rs:86:5
   |
86 |   //! #[test]
   |  _____^
87 | | //! fn export_bindings() {
   | |______________________^
   |
   = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#test_attr_in_doctest
   = note: `#[warn(clippy::test_attr_in_doctest)]` implied by `#[warn(clippy::all)]`

Check warning on line 98 in src/lib.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

using tabs in doc comments is not recommended

warning: using tabs in doc comments is not recommended
  --> src/lib.rs:98:4
   |
98 | //!            .unwrap();
   |    ^^^^^^^^^^^^ help: consider using four spaces per tab
   |
   = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#tabs_in_doc_comments

Check warning on line 97 in src/lib.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

using tabs in doc comments is not recommended

warning: using tabs in doc comments is not recommended
  --> src/lib.rs:97:4
   |
97 | //!            .export()
   |    ^^^^^^^^^^^^ help: consider using four spaces per tab
   |
   = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#tabs_in_doc_comments

Check warning on line 96 in src/lib.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

using tabs in doc comments is not recommended

warning: using tabs in doc comments is not recommended
  --> src/lib.rs:96:4
   |
96 | //!            .path("../src/bindings.js")
   |    ^^^^^^^^^^^^ help: consider using four spaces per tab
   |
   = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#tabs_in_doc_comments

Check warning on line 95 in src/lib.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

using tabs in doc comments is not recommended

warning: using tabs in doc comments is not recommended
  --> src/lib.rs:95:4
   |
95 | //!            .commands(collect_commands![greet, greet2, greet3])
   |    ^^^^^^^^^^^^ help: consider using four spaces per tab
   |
   = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#tabs_in_doc_comments

Check warning on line 94 in src/lib.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

using tabs in doc comments is not recommended

warning: using tabs in doc comments is not recommended
  --> src/lib.rs:94:4
   |
94 | //!        js::builder()
   |    ^^^^^^^^ help: consider using four spaces per tab
   |
   = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#tabs_in_doc_comments

Check warning on line 92 in src/lib.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

using tabs in doc comments is not recommended

warning: using tabs in doc comments is not recommended
  --> src/lib.rs:92:4
   |
92 | //!            .unwrap();
   |    ^^^^^^^^^^^^ help: consider using four spaces per tab
   |
   = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#tabs_in_doc_comments

Check warning on line 91 in src/lib.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

using tabs in doc comments is not recommended

warning: using tabs in doc comments is not recommended
  --> src/lib.rs:91:4
   |
91 | //!            .export()
   |    ^^^^^^^^^^^^ help: consider using four spaces per tab
   |
   = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#tabs_in_doc_comments

Check warning on line 90 in src/lib.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

using tabs in doc comments is not recommended

warning: using tabs in doc comments is not recommended
  --> src/lib.rs:90:4
   |
90 | //!            .path("../src/bindings.ts")
   |    ^^^^^^^^^^^^ help: consider using four spaces per tab
   |
   = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#tabs_in_doc_comments

Check warning on line 89 in src/lib.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

using tabs in doc comments is not recommended

warning: using tabs in doc comments is not recommended
  --> src/lib.rs:89:4
   |
89 | //!            .commands(collect_commands![greet, greet2, greet3])
   |    ^^^^^^^^^^^^ help: consider using four spaces per tab
   |
   = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#tabs_in_doc_comments

Check warning on line 88 in src/lib.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

using tabs in doc comments is not recommended

warning: using tabs in doc comments is not recommended
  --> src/lib.rs:88:4
   |
88 | //!        ts::builder()
   |    ^^^^^^^^ help: consider using four spaces per tab
   |
   = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#tabs_in_doc_comments

Check warning on line 83 in src/lib.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

using tabs in doc comments is not recommended

warning: using tabs in doc comments is not recommended
  --> src/lib.rs:83:4
   |
83 | //!            .unwrap();
   |    ^^^^^^^^^^^^ help: consider using four spaces per tab
   |
   = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#tabs_in_doc_comments

Check warning on line 82 in src/lib.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

using tabs in doc comments is not recommended

warning: using tabs in doc comments is not recommended
  --> src/lib.rs:82:4
   |
82 | //!            .export()
   |    ^^^^^^^^^^^^ help: consider using four spaces per tab
   |
   = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#tabs_in_doc_comments

Check warning on line 81 in src/lib.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

using tabs in doc comments is not recommended

warning: using tabs in doc comments is not recommended
  --> src/lib.rs:81:4
   |
81 | //!            .path("../src/bindings.js")
   |    ^^^^^^^^^^^^ help: consider using four spaces per tab
   |
   = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#tabs_in_doc_comments

Check warning on line 80 in src/lib.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

using tabs in doc comments is not recommended

warning: using tabs in doc comments is not recommended
  --> src/lib.rs:80:4
   |
80 | //!            .commands(collect_commands![greet, greet2, greet3])
   |    ^^^^^^^^^^^^ help: consider using four spaces per tab
   |
   = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#tabs_in_doc_comments