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

feat(pilota): support clone for transport exception #230

Merged
merged 1 commit into from
Mar 4, 2024

feat(pilota): support clone for transport exception

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

feat(pilota): support clone for transport exception #230

feat(pilota): support clone for transport exception
20c9f82
Select commit
Loading
Failed to load commit list.
GitHub Actions / clippy succeeded Mar 4, 2024 in 1s

clippy

88 warnings

Details

Results

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

Versions

  • rustc 1.78.0-nightly (516b6162a 2024-03-03)
  • cargo 1.78.0-nightly (f772ec022 2024-03-01)
  • clippy 0.1.78 (516b616 2024-03-03)

Annotations

Check warning on line 60 in pilota-build/src/ir/mod.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

struct `ExceptionVariant` is never constructed

warning: struct `ExceptionVariant` is never constructed
  --> pilota-build/src/ir/mod.rs:60:12
   |
60 | pub struct ExceptionVariant {
   |            ^^^^^^^^^^^^^^^^
   |
   = note: `ExceptionVariant` has derived impls for the traits `Debug` and `Clone`, but these are intentionally ignored during dead code analysis

Check warning on line 14 in pilota-build/src/index.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

method `increment_by` is never used

warning: method `increment_by` is never used
  --> pilota-build/src/index.rs:14:8
   |
3  | pub trait Idx: Sized + Copy + 'static {
   |           --- method in this trait
...
14 |     fn increment_by(&mut self, amount: usize) {
   |        ^^^^^^^^^^^^
   |
   = note: `#[warn(dead_code)]` on by default

Check warning on line 1 in pilota/src/thrift/binary_unsafe.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

the item `TryInto` is imported redundantly

warning: the item `TryInto` is imported redundantly
 --> pilota/src/thrift/binary_unsafe.rs:1:11
  |
1 | use std::{convert::TryInto, ptr, slice, str};
  |           ^^^^^^^^^^^^^^^^
 --> /rustc/516b6162a2ea8e66678c09e8243ebd83e4b8eeea/library/std/src/prelude/mod.rs:129:13
  |
  = note: the item `TryInto` is already defined here

Check warning on line 1 in pilota/src/thrift/binary_le.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

the item `TryInto` is imported redundantly

warning: the item `TryInto` is imported redundantly
 --> pilota/src/thrift/binary_le.rs:1:11
  |
1 | use std::{convert::TryInto, str};
  |           ^^^^^^^^^^^^^^^^
 --> /rustc/516b6162a2ea8e66678c09e8243ebd83e4b8eeea/library/std/src/prelude/mod.rs:129:13
  |
  = note: the item `TryInto` is already defined here

Check warning on line 1 in pilota/src/thrift/binary.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

the item `TryInto` is imported redundantly

warning: the item `TryInto` is imported redundantly
 --> pilota/src/thrift/binary.rs:1:11
  |
1 | use std::{convert::TryInto, str};
  |           ^^^^^^^^^^^^^^^^
 --> /rustc/516b6162a2ea8e66678c09e8243ebd83e4b8eeea/library/std/src/prelude/mod.rs:129:13
  |
  = note: the item `TryInto` is already defined here

Check warning on line 9 in pilota/src/prost/types.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

the item `Vec` is imported redundantly

warning: the item `Vec` is imported redundantly
 --> pilota/src/prost/types.rs:9:29
  |
9 | use alloc::{string::String, vec::Vec};
  |                             ^^^^^^^^
 --> /rustc/516b6162a2ea8e66678c09e8243ebd83e4b8eeea/library/std/src/prelude/mod.rs:125:13
  |
  = note: the item `Vec` is already defined here

Check warning on line 9 in pilota/src/prost/types.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

the item `String` is imported redundantly

warning: the item `String` is imported redundantly
 --> pilota/src/prost/types.rs:9:13
  |
9 | use alloc::{string::String, vec::Vec};
  |             ^^^^^^^^^^^^^^
 --> /rustc/516b6162a2ea8e66678c09e8243ebd83e4b8eeea/library/std/src/prelude/mod.rs:125:13
  |
  = note: the item `String` is already defined here

Check warning on line 3 in pilota/src/prost/message.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

the item `Vec` is imported redundantly

warning: the item `Vec` is imported redundantly
 --> pilota/src/prost/message.rs:3:25
  |
3 | use alloc::{boxed::Box, vec::Vec};
  |                         ^^^^^^^^
 --> /rustc/516b6162a2ea8e66678c09e8243ebd83e4b8eeea/library/std/src/prelude/mod.rs:125:13
  |
  = note: the item `Vec` is already defined here

Check warning on line 3 in pilota/src/prost/message.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

the item `Box` is imported redundantly

warning: the item `Box` is imported redundantly
 --> pilota/src/prost/message.rs:3:13
  |
3 | use alloc::{boxed::Box, vec::Vec};
  |             ^^^^^^^^^^
 --> /rustc/516b6162a2ea8e66678c09e8243ebd83e4b8eeea/library/std/src/prelude/mod.rs:125:13
  |
  = note: the item `Box` is already defined here

Check warning on line 4 in pilota/src/prost/error.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

the item `Vec` is imported redundantly

warning: the item `Vec` is imported redundantly
 --> pilota/src/prost/error.rs:4:38
  |
4 | use alloc::{borrow::Cow, boxed::Box, vec::Vec};
  |                                      ^^^^^^^^
 --> /rustc/516b6162a2ea8e66678c09e8243ebd83e4b8eeea/library/std/src/prelude/mod.rs:125:13
  |
  = note: the item `Vec` is already defined here

Check warning on line 4 in pilota/src/prost/error.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

the item `Box` is imported redundantly

warning: the item `Box` is imported redundantly
 --> pilota/src/prost/error.rs:4:26
  |
4 | use alloc::{borrow::Cow, boxed::Box, vec::Vec};
  |                          ^^^^^^^^^^
 --> /rustc/516b6162a2ea8e66678c09e8243ebd83e4b8eeea/library/std/src/prelude/mod.rs:125:13
  |
  = note: the item `Box` is already defined here
  |
  = note: `#[warn(unused_imports)]` on by default

Check warning on line 9 in pilota-thrift-parser/src/parser/typedef.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

the item `Ident` is imported redundantly

warning: the item `Ident` is imported redundantly
  --> pilota-thrift-parser/src/parser/typedef.rs:9:31
   |
9  |     descriptor::{Annotations, Ident, Type, Typedef},
   |                               ^^^^^
10 |     parser::*,
   |     --------- the item `Ident` is already imported here

Check warning on line 5 in pilota-thrift-parser/src/parser/typedef.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

the item `IResult` is imported redundantly

warning: the item `IResult` is imported redundantly
  --> pilota-thrift-parser/src/parser/typedef.rs:5:5
   |
5  |     IResult,
   |     ^^^^^^^
...
10 |     parser::*,
   |     --------- the item `IResult` is already imported here

Check warning on line 4 in pilota-thrift-parser/src/parser/typedef.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

the item `tuple` is imported redundantly

warning: the item `tuple` is imported redundantly
  --> pilota-thrift-parser/src/parser/typedef.rs:4:5
   |
4  |     sequence::tuple,
   |     ^^^^^^^^^^^^^^^
...
10 |     parser::*,
   |     --------- the item `tuple` is already imported here

Check warning on line 3 in pilota-thrift-parser/src/parser/typedef.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

the item `opt` is imported redundantly

warning: the item `opt` is imported redundantly
  --> pilota-thrift-parser/src/parser/typedef.rs:3:23
   |
3  |     combinator::{map, opt},
   |                       ^^^
...
10 |     parser::*,
   |     --------- the item `opt` is already imported here

Check warning on line 3 in pilota-thrift-parser/src/parser/typedef.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

the item `map` is imported redundantly

warning: the item `map` is imported redundantly
  --> pilota-thrift-parser/src/parser/typedef.rs:3:18
   |
3  |     combinator::{map, opt},
   |                  ^^^
...
10 |     parser::*,
   |     --------- the item `map` is already imported here

Check warning on line 2 in pilota-thrift-parser/src/parser/typedef.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

the item `tag` is imported redundantly

warning: the item `tag` is imported redundantly
  --> pilota-thrift-parser/src/parser/typedef.rs:2:5
   |
2  |     bytes::complete::tag,
   |     ^^^^^^^^^^^^^^^^^^^^
...
10 |     parser::*,
   |     --------- the item `tag` is already imported here

Check warning on line 12 in pilota-thrift-parser/src/parser/ty.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

the item `Path` is imported redundantly

warning: the item `Path` is imported redundantly
  --> pilota-thrift-parser/src/parser/ty.rs:12:49
   |
12 |     descriptor::{Annotations, CppType, Literal, Path, Ty, Type},
   |                                                 ^^^^
13 |     parser::*,
   |     --------- the item `Path` is already imported here

Check warning on line 8 in pilota-thrift-parser/src/parser/ty.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

the item `IResult` is imported redundantly

warning: the item `IResult` is imported redundantly
  --> pilota-thrift-parser/src/parser/ty.rs:8:5
   |
8  |     IResult,
   |     ^^^^^^^
...
13 |     parser::*,
   |     --------- the item `IResult` is already imported here

Check warning on line 7 in pilota-thrift-parser/src/parser/ty.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

the item `tuple` is imported redundantly

warning: the item `tuple` is imported redundantly
  --> pilota-thrift-parser/src/parser/ty.rs:7:26
   |
7  |     sequence::{preceded, tuple},
   |                          ^^^^^
...
13 |     parser::*,
   |     --------- the item `tuple` is already imported here

Check warning on line 7 in pilota-thrift-parser/src/parser/ty.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

the item `preceded` is imported redundantly

warning: the item `preceded` is imported redundantly
  --> pilota-thrift-parser/src/parser/ty.rs:7:16
   |
7  |     sequence::{preceded, tuple},
   |                ^^^^^^^^
...
13 |     parser::*,
   |     --------- the item `preceded` is already imported here

Check warning on line 6 in pilota-thrift-parser/src/parser/ty.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

the item `opt` is imported redundantly

warning: the item `opt` is imported redundantly
  --> pilota-thrift-parser/src/parser/ty.rs:6:23
   |
6  |     combinator::{map, opt},
   |                       ^^^
...
13 |     parser::*,
   |     --------- the item `opt` is already imported here

Check warning on line 6 in pilota-thrift-parser/src/parser/ty.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

the item `map` is imported redundantly

warning: the item `map` is imported redundantly
  --> pilota-thrift-parser/src/parser/ty.rs:6:18
   |
6  |     combinator::{map, opt},
   |                  ^^^
...
13 |     parser::*,
   |     --------- the item `map` is already imported here

Check warning on line 5 in pilota-thrift-parser/src/parser/ty.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

the item `tag` is imported redundantly

warning: the item `tag` is imported redundantly
  --> pilota-thrift-parser/src/parser/ty.rs:5:5
   |
5  |     bytes::complete::tag,
   |     ^^^^^^^^^^^^^^^^^^^^
...
13 |     parser::*,
   |     --------- the item `tag` is already imported here

Check warning on line 4 in pilota-thrift-parser/src/parser/ty.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

the item `alt` is imported redundantly

warning: the item `alt` is imported redundantly
  --> pilota-thrift-parser/src/parser/ty.rs:4:14
   |
4  |     branch::{alt, permutation},
   |              ^^^
...
13 |     parser::*,
   |     --------- the item `alt` is already imported here