-
Notifications
You must be signed in to change notification settings - Fork 43
Open
Description
When using cargo clippy --all-targets --workspace -- -D warnings to test the main branch code, which has errors like the following information, we need to fix this.
$ cargo clippy --all-targets --workspace -- -D warnings
Checking paimon v0.0.0 (/Users/wangerxi/workspaces/paimon-rust/crates/paimon)
error: the `Err`-variant returned from this function is very large
--> crates/paimon/src/file_index/file_index_format.rs:192:6
|
192 | ) -> crate::Result<usize> {
| ^^^^^^^^^^^^^^^^^^^^
|
::: crates/paimon/src/error.rs:41:5
|
41 | / IoUnexpected {
42 | | message: String,
43 | | source: opendal::Error,
44 | | },
| |_____- the variant `IoUnexpected` contains at least 152 bytes
...
59 | / DataUnexpected {
60 | | message: String,
61 | | source: apache_avro::Error,
62 | | },
| |_____- the largest variant contains at least 280 bytes
|
= help: try reducing the size of `error::Error`, for example by boxing large elements or replacing it with `Box<error::Error>`
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err
= note: `-D clippy::result-large-err` implied by `-D warnings`
= help: to override `-D warnings` add `#[allow(clippy::result_large_err)]`
error: the `Err`-variant returned from this function is very large
--> crates/paimon/src/io/file_io.rs:40:36
|
40 | pub fn from_url(path: &str) -> crate::Result<FileIOBuilder> {
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
::: crates/paimon/src/error.rs:41:5
|
41 | / IoUnexpected {
42 | | message: String,
43 | | source: opendal::Error,
44 | | },
| |_____- the variant `IoUnexpected` contains at least 152 bytes
...
59 | / DataUnexpected {
60 | | message: String,
61 | | source: apache_avro::Error,
62 | | },
| |_____- the largest variant contains at least 280 bytes
|
= help: try reducing the size of `error::Error`, for example by boxing large elements or replacing it with `Box<error::Error>`
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err
error: the `Err`-variant returned from this function is very large
--> crates/paimon/src/io/file_io.rs:51:44
|
51 | pub fn new_input(&self, path: &str) -> crate::Result<InputFile> {
| ^^^^^^^^^^^^^^^^^^^^^^^^
|
::: crates/paimon/src/error.rs:41:5
|
41 | / IoUnexpected {
42 | | message: String,
43 | | source: opendal::Error,
44 | | },
| |_____- the variant `IoUnexpected` contains at least 152 bytes
...
59 | / DataUnexpected {
60 | | message: String,
61 | | source: apache_avro::Error,
62 | | },
| |_____- the largest variant contains at least 280 bytes
|
= help: try reducing the size of `error::Error`, for example by boxing large elements or replacing it with `Box<error::Error>`
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err
error: the `Err`-variant returned from this function is very large
--> crates/paimon/src/io/file_io.rs:65:45
|
65 | pub fn new_output(&self, path: &str) -> Result<OutputFile> {
| ^^^^^^^^^^^^^^^^^^
|
::: crates/paimon/src/error.rs:41:5
|
41 | / IoUnexpected {
42 | | message: String,
43 | | source: opendal::Error,
44 | | },
| |_____- the variant `IoUnexpected` contains at least 152 bytes
...
59 | / DataUnexpected {
60 | | message: String,
61 | | source: apache_avro::Error,
62 | | },
| |_____- the largest variant contains at least 280 bytes
|
= help: try reducing the size of `error::Error`, for example by boxing large elements or replacing it with `Box<error::Error>`
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err
error: the `Err`-variant returned from this function is very large
--> crates/paimon/src/io/file_io.rs:226:27
|
226 | pub fn build(self) -> crate::Result<FileIO> {
| ^^^^^^^^^^^^^^^^^^^^^
|
::: crates/paimon/src/error.rs:41:5
|
41 | / IoUnexpected {
42 | | message: String,
43 | | source: opendal::Error,
44 | | },
| |_____- the variant `IoUnexpected` contains at least 152 bytes
...
59 | / DataUnexpected {
60 | | message: String,
61 | | source: apache_avro::Error,
62 | | },
| |_____- the largest variant contains at least 280 bytes
|
= help: try reducing the size of `error::Error`, for example by boxing large elements or replacing it with `Box<error::Error>`
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err
error: the `Err`-variant returned from this function is very large
--> crates/paimon/src/io/storage.rs:34:60
|
34 | pub(crate) fn build(file_io_builder: FileIOBuilder) -> crate::Result<Self> {
| ^^^^^^^^^^^^^^^^^^^
|
::: crates/paimon/src/error.rs:41:5
|
41 | / IoUnexpected {
42 | | message: String,
43 | | source: opendal::Error,
44 | | },
| |_____- the variant `IoUnexpected` contains at least 152 bytes
...
59 | / DataUnexpected {
60 | | message: String,
61 | | source: apache_avro::Error,
62 | | },
| |_____- the largest variant contains at least 280 bytes
|
= help: try reducing the size of `error::Error`, for example by boxing large elements or replacing it with `Box<error::Error>`
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err
error: the `Err`-variant returned from this function is very large
--> crates/paimon/src/io/storage.rs:49:55
|
49 | pub(crate) fn create<'a>(&self, path: &'a str) -> crate::Result<(Operator, &'a str)> {
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
::: crates/paimon/src/error.rs:41:5
|
41 | / IoUnexpected {
42 | | message: String,
43 | | source: opendal::Error,
44 | | },
| |_____- the variant `IoUnexpected` contains at least 152 bytes
...
59 | / DataUnexpected {
60 | | message: String,
61 | | source: apache_avro::Error,
62 | | },
| |_____- the largest variant contains at least 280 bytes
|
= help: try reducing the size of `error::Error`, for example by boxing large elements or replacing it with `Box<error::Error>`
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err
error: the `Err`-variant returned from this function is very large
--> crates/paimon/src/io/storage.rs:74:38
|
74 | fn parse_scheme(scheme: &str) -> crate::Result<Scheme> {
| ^^^^^^^^^^^^^^^^^^^^^
|
::: crates/paimon/src/error.rs:41:5
|
41 | / IoUnexpected {
42 | | message: String,
43 | | source: opendal::Error,
44 | | },
| |_____- the variant `IoUnexpected` contains at least 152 bytes
...
59 | / DataUnexpected {
60 | | message: String,
61 | | source: apache_avro::Error,
62 | | },
| |_____- the largest variant contains at least 280 bytes
|
= help: try reducing the size of `error::Error`, for example by boxing large elements or replacing it with `Box<error::Error>`
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err
error: the `Err`-variant returned from this function is very large
--> crates/paimon/src/io/storage_fs.rs:24:36
|
24 | pub(crate) fn fs_config_build() -> Result<Operator> {
| ^^^^^^^^^^^^^^^^
|
::: crates/paimon/src/error.rs:41:5
|
41 | / IoUnexpected {
42 | | message: String,
43 | | source: opendal::Error,
44 | | },
| |_____- the variant `IoUnexpected` contains at least 152 bytes
...
59 | / DataUnexpected {
60 | | message: String,
61 | | source: apache_avro::Error,
62 | | },
| |_____- the largest variant contains at least 280 bytes
|
= help: try reducing the size of `error::Error`, for example by boxing large elements or replacing it with `Box<error::Error>`
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err
error: the `Err`-variant returned from this function is very large
--> crates/paimon/src/io/storage_memory.rs:23:40
|
23 | pub(crate) fn memory_config_build() -> Result<Operator> {
| ^^^^^^^^^^^^^^^^
|
::: crates/paimon/src/error.rs:41:5
|
41 | / IoUnexpected {
42 | | message: String,
43 | | source: opendal::Error,
44 | | },
| |_____- the variant `IoUnexpected` contains at least 152 bytes
...
59 | / DataUnexpected {
60 | | message: String,
61 | | source: apache_avro::Error,
62 | | },
| |_____- the largest variant contains at least 280 bytes
|
= help: try reducing the size of `error::Error`, for example by boxing large elements or replacing it with `Box<error::Error>`
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err
error: the `Err`-variant returned from this function is very large
--> crates/paimon/src/spec/objects_file.rs:24:62
|
24 | pub fn from_avro_bytes<T: DeserializeOwned>(bytes: &[u8]) -> crate::Result<Vec<T>> {
| ^^^^^^^^^^^^^^^^^^^^^
|
::: crates/paimon/src/error.rs:41:5
|
41 | / IoUnexpected {
42 | | message: String,
43 | | source: opendal::Error,
44 | | },
| |_____- the variant `IoUnexpected` contains at least 152 bytes
...
59 | / DataUnexpected {
60 | | message: String,
61 | | source: apache_avro::Error,
62 | | },
| |_____- the largest variant contains at least 280 bytes
|
= help: try reducing the size of `error::Error`, for example by boxing large elements or replacing it with `Box<error::Error>`
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err
error: the `Err`-variant returned from this function is very large
--> crates/paimon/src/file_index/file_index_format.rs:405:51
|
405 | async fn test_single_column_single_index() -> crate::Result<()> {
| ^^^^^^^^^^^^^^^^^
|
::: crates/paimon/src/error.rs:41:5
|
41 | / IoUnexpected {
42 | | message: String,
43 | | source: opendal::Error,
44 | | },
| |_____- the variant `IoUnexpected` contains at least 152 bytes
...
59 | / DataUnexpected {
60 | | message: String,
61 | | source: apache_avro::Error,
62 | | },
| |_____- the largest variant contains at least 280 bytes
|
= help: try reducing the size of `error::Error`, for example by boxing large elements or replacing it with `Box<error::Error>`
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err
error: the `Err`-variant returned from this function is very large
--> crates/paimon/src/file_index/file_index_format.rs:428:58
|
428 | async fn test_multiple_columns_multiple_indexes() -> crate::Result<()> {
| ^^^^^^^^^^^^^^^^^
|
::: crates/paimon/src/error.rs:41:5
|
41 | / IoUnexpected {
42 | | message: String,
43 | | source: opendal::Error,
44 | | },
| |_____- the variant `IoUnexpected` contains at least 152 bytes
...
59 | / DataUnexpected {
60 | | message: String,
61 | | source: apache_avro::Error,
62 | | },
| |_____- the largest variant contains at least 280 bytes
|
= help: try reducing the size of `error::Error`, for example by boxing large elements or replacing it with `Box<error::Error>`
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err
error: the `Err`-variant returned from this function is very large
--> crates/paimon/src/file_index/file_index_format.rs:460:41
|
460 | async fn test_empty_file_index() -> crate::Result<()> {
| ^^^^^^^^^^^^^^^^^
|
::: crates/paimon/src/error.rs:41:5
|
41 | / IoUnexpected {
42 | | message: String,
43 | | source: opendal::Error,
44 | | },
| |_____- the variant `IoUnexpected` contains at least 152 bytes
...
59 | / DataUnexpected {
60 | | message: String,
61 | | source: apache_avro::Error,
62 | | },
| |_____- the largest variant contains at least 280 bytes
|
= help: try reducing the size of `error::Error`, for example by boxing large elements or replacing it with `Box<error::Error>`
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err
error: the `Err`-variant returned from this function is very large
--> crates/paimon/src/file_index/file_index_format.rs:484:39
|
484 | async fn test_large_data_set() -> crate::Result<()> {
| ^^^^^^^^^^^^^^^^^
|
::: crates/paimon/src/error.rs:41:5
|
41 | / IoUnexpected {
42 | | message: String,
43 | | source: opendal::Error,
44 | | },
| |_____- the variant `IoUnexpected` contains at least 152 bytes
...
59 | / DataUnexpected {
60 | | message: String,
61 | | source: apache_avro::Error,
62 | | },
| |_____- the largest variant contains at least 280 bytes
|
= help: try reducing the size of `error::Error`, for example by boxing large elements or replacing it with `Box<error::Error>`
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err
error: the `Err`-variant returned from this function is very large
--> crates/paimon/src/spec/types.rs:263:34
|
263 | pub fn new(length: usize) -> Result<Self, Error> {
| ^^^^^^^^^^^^^^^^^^^
|
::: crates/paimon/src/error.rs:41:5
|
41 | / IoUnexpected {
42 | | message: String,
43 | | source: opendal::Error,
44 | | },
| |_____- the variant `IoUnexpected` contains at least 152 bytes
...
59 | / DataUnexpected {
60 | | message: String,
61 | | source: apache_avro::Error,
62 | | },
| |_____- the largest variant contains at least 280 bytes
|
= help: try reducing the size of `error::Error`, for example by boxing large elements or replacing it with `Box<error::Error>`
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err
error: the `Err`-variant returned from this function is very large
--> crates/paimon/src/spec/types.rs:267:60
|
267 | pub fn with_nullable(nullable: bool, length: usize) -> Result<Self, Error> {
| ^^^^^^^^^^^^^^^^^^^
|
::: crates/paimon/src/error.rs:41:5
|
41 | / IoUnexpected {
42 | | message: String,
43 | | source: opendal::Error,
44 | | },
| |_____- the variant `IoUnexpected` contains at least 152 bytes
...
59 | / DataUnexpected {
60 | | message: String,
61 | | source: apache_avro::Error,
62 | | },
| |_____- the largest variant contains at least 280 bytes
|
= help: try reducing the size of `error::Error`, for example by boxing large elements or replacing it with `Box<error::Error>`
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err
error: the `Err`-variant returned from this function is very large
--> crates/paimon/src/spec/types.rs:380:34
|
380 | pub fn new(length: usize) -> Result<Self, Error> {
| ^^^^^^^^^^^^^^^^^^^
|
::: crates/paimon/src/error.rs:41:5
|
41 | / IoUnexpected {
42 | | message: String,
43 | | source: opendal::Error,
44 | | },
| |_____- the variant `IoUnexpected` contains at least 152 bytes
...
59 | / DataUnexpected {
60 | | message: String,
61 | | source: apache_avro::Error,
62 | | },
| |_____- the largest variant contains at least 280 bytes
|
= help: try reducing the size of `error::Error`, for example by boxing large elements or replacing it with `Box<error::Error>`
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err
error: the `Err`-variant returned from this function is very large
--> crates/paimon/src/spec/types.rs:384:60
|
384 | pub fn with_nullable(nullable: bool, length: usize) -> Result<Self, Error> {
| ^^^^^^^^^^^^^^^^^^^
|
::: crates/paimon/src/error.rs:41:5
|
41 | / IoUnexpected {
42 | | message: String,
43 | | source: opendal::Error,
44 | | },
| |_____- the variant `IoUnexpected` contains at least 152 bytes
...
59 | / DataUnexpected {
60 | | message: String,
61 | | source: apache_avro::Error,
62 | | },
| |_____- the largest variant contains at least 280 bytes
|
= help: try reducing the size of `error::Error`, for example by boxing large elements or replacing it with `Box<error::Error>`
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err
error: the `Err`-variant returned from this function is very large
--> crates/paimon/src/spec/types.rs:536:47
|
536 | pub fn new(precision: u32, scale: u32) -> Result<Self, Error> {
| ^^^^^^^^^^^^^^^^^^^
|
::: crates/paimon/src/error.rs:41:5
|
41 | / IoUnexpected {
42 | | message: String,
43 | | source: opendal::Error,
44 | | },
| |_____- the variant `IoUnexpected` contains at least 152 bytes
...
59 | / DataUnexpected {
60 | | message: String,
61 | | source: apache_avro::Error,
62 | | },
| |_____- the largest variant contains at least 280 bytes
|
= help: try reducing the size of `error::Error`, for example by boxing large elements or replacing it with `Box<error::Error>`
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err
error: the `Err`-variant returned from this function is very large
--> crates/paimon/src/spec/types.rs:540:73
|
540 | pub fn with_nullable(nullable: bool, precision: u32, scale: u32) -> Result<Self, Error> {
| ^^^^^^^^^^^^^^^^^^^
|
::: crates/paimon/src/error.rs:41:5
|
41 | / IoUnexpected {
42 | | message: String,
43 | | source: opendal::Error,
44 | | },
| |_____- the variant `IoUnexpected` contains at least 152 bytes
...
59 | / DataUnexpected {
60 | | message: String,
61 | | source: apache_avro::Error,
62 | | },
| |_____- the largest variant contains at least 280 bytes
|
= help: try reducing the size of `error::Error`, for example by boxing large elements or replacing it with `Box<error::Error>`
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err
error: the `Err`-variant returned from this function is very large
--> crates/paimon/src/spec/types.rs:761:35
|
761 | pub fn new(precision: u32) -> Result<Self, Error> {
| ^^^^^^^^^^^^^^^^^^^
|
::: crates/paimon/src/error.rs:41:5
|
41 | / IoUnexpected {
42 | | message: String,
43 | | source: opendal::Error,
44 | | },
| |_____- the variant `IoUnexpected` contains at least 152 bytes
...
59 | / DataUnexpected {
60 | | message: String,
61 | | source: apache_avro::Error,
62 | | },
| |_____- the largest variant contains at least 280 bytes
|
= help: try reducing the size of `error::Error`, for example by boxing large elements or replacing it with `Box<error::Error>`
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err
error: the `Err`-variant returned from this function is very large
--> crates/paimon/src/spec/types.rs:765:61
|
765 | pub fn with_nullable(nullable: bool, precision: u32) -> Result<Self, Error> {
| ^^^^^^^^^^^^^^^^^^^
|
::: crates/paimon/src/error.rs:41:5
|
41 | / IoUnexpected {
42 | | message: String,
43 | | source: opendal::Error,
44 | | },
| |_____- the variant `IoUnexpected` contains at least 152 bytes
...
59 | / DataUnexpected {
60 | | message: String,
61 | | source: apache_avro::Error,
62 | | },
| |_____- the largest variant contains at least 280 bytes
|
= help: try reducing the size of `error::Error`, for example by boxing large elements or replacing it with `Box<error::Error>`
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err
error: the `Err`-variant returned from this function is very large
--> crates/paimon/src/spec/types.rs:897:35
|
897 | pub fn new(precision: u32) -> Result<Self, Error> {
| ^^^^^^^^^^^^^^^^^^^
|
::: crates/paimon/src/error.rs:41:5
|
41 | / IoUnexpected {
42 | | message: String,
43 | | source: opendal::Error,
44 | | },
| |_____- the variant `IoUnexpected` contains at least 152 bytes
...
59 | / DataUnexpected {
60 | | message: String,
61 | | source: apache_avro::Error,
62 | | },
| |_____- the largest variant contains at least 280 bytes
|
= help: try reducing the size of `error::Error`, for example by boxing large elements or replacing it with `Box<error::Error>`
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err
error: the `Err`-variant returned from this function is very large
--> crates/paimon/src/spec/types.rs:901:61
|
901 | pub fn with_nullable(nullable: bool, precision: u32) -> Result<Self, Error> {
| ^^^^^^^^^^^^^^^^^^^
|
::: crates/paimon/src/error.rs:41:5
|
41 | / IoUnexpected {
42 | | message: String,
43 | | source: opendal::Error,
44 | | },
| |_____- the variant `IoUnexpected` contains at least 152 bytes
...
59 | / DataUnexpected {
60 | | message: String,
61 | | source: apache_avro::Error,
62 | | },
| |_____- the largest variant contains at least 280 bytes
|
= help: try reducing the size of `error::Error`, for example by boxing large elements or replacing it with `Box<error::Error>`
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err
error: the `Err`-variant returned from this function is very large
--> crates/paimon/src/spec/types.rs:994:35
|
994 | pub fn new(precision: u32) -> Result<Self, Error> {
| ^^^^^^^^^^^^^^^^^^^
|
::: crates/paimon/src/error.rs:41:5
|
41 | / IoUnexpected {
42 | | message: String,
43 | | source: opendal::Error,
44 | | },
| |_____- the variant `IoUnexpected` contains at least 152 bytes
...
59 | / DataUnexpected {
60 | | message: String,
61 | | source: apache_avro::Error,
62 | | },
| |_____- the largest variant contains at least 280 bytes
|
= help: try reducing the size of `error::Error`, for example by boxing large elements or replacing it with `Box<error::Error>`
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err
error: the `Err`-variant returned from this function is very large
--> crates/paimon/src/spec/types.rs:998:61
|
998 | pub fn with_nullable(nullable: bool, precision: u32) -> Result<Self, Error> {
| ^^^^^^^^^^^^^^^^^^^
|
::: crates/paimon/src/error.rs:41:5
|
41 | / IoUnexpected {
42 | | message: String,
43 | | source: opendal::Error,
44 | | },
| |_____- the variant `IoUnexpected` contains at least 152 bytes
...
59 | / DataUnexpected {
60 | | message: String,
61 | | source: apache_avro::Error,
62 | | },
| |_____- the largest variant contains at least 280 bytes
|
= help: try reducing the size of `error::Error`, for example by boxing large elements or replacing it with `Box<error::Error>`
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err
error: the `Err`-variant returned from this function is very large
--> crates/paimon/src/spec/types.rs:1122:32
|
1122 | pub fn new(length: u32) -> Result<Self, Error> {
| ^^^^^^^^^^^^^^^^^^^
|
::: crates/paimon/src/error.rs:41:5
|
41 | / IoUnexpected {
42 | | message: String,
43 | | source: opendal::Error,
44 | | },
| |_____- the variant `IoUnexpected` contains at least 152 bytes
...
59 | / DataUnexpected {
60 | | message: String,
61 | | source: apache_avro::Error,
62 | | },
| |_____- the largest variant contains at least 280 bytes
|
= help: try reducing the size of `error::Error`, for example by boxing large elements or replacing it with `Box<error::Error>`
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err
error: the `Err`-variant returned from this function is very large
--> crates/paimon/src/spec/types.rs:1126:52
|
1126 | pub fn try_new(nullable: bool, length: u32) -> Result<Self, Error> {
| ^^^^^^^^^^^^^^^^^^^
|
::: crates/paimon/src/error.rs:41:5
|
41 | / IoUnexpected {
42 | | message: String,
43 | | source: opendal::Error,
44 | | },
| |_____- the variant `IoUnexpected` contains at least 152 bytes
...
59 | / DataUnexpected {
60 | | message: String,
61 | | source: apache_avro::Error,
62 | | },
| |_____- the largest variant contains at least 280 bytes
|
= help: try reducing the size of `error::Error`, for example by boxing large elements or replacing it with `Box<error::Error>`
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err
error: the `Err`-variant returned from this function is very large
--> crates/paimon/src/spec/types.rs:1207:32
|
1207 | pub fn new(length: u32) -> Result<Self, Error> {
| ^^^^^^^^^^^^^^^^^^^
|
::: crates/paimon/src/error.rs:41:5
|
41 | / IoUnexpected {
42 | | message: String,
43 | | source: opendal::Error,
44 | | },
| |_____- the variant `IoUnexpected` contains at least 152 bytes
...
59 | / DataUnexpected {
60 | | message: String,
61 | | source: apache_avro::Error,
62 | | },
| |_____- the largest variant contains at least 280 bytes
|
= help: try reducing the size of `error::Error`, for example by boxing large elements or replacing it with `Box<error::Error>`
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err
error: the `Err`-variant returned from this function is very large
--> crates/paimon/src/spec/types.rs:1211:58
|
1211 | pub fn with_nullable(nullable: bool, length: u32) -> Result<Self, Error> {
| ^^^^^^^^^^^^^^^^^^^
|
::: crates/paimon/src/error.rs:41:5
|
41 | / IoUnexpected {
42 | | message: String,
43 | | source: opendal::Error,
44 | | },
| |_____- the variant `IoUnexpected` contains at least 152 bytes
...
59 | / DataUnexpected {
60 | | message: String,
61 | | source: apache_avro::Error,
62 | | },
| |_____- the largest variant contains at least 280 bytes
|
= help: try reducing the size of `error::Error`, for example by boxing large elements or replacing it with `Box<error::Error>`
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err
error: the `Err`-variant returned from this function is very large
--> crates/paimon/src/spec/types.rs:1506:10
|
1506 | ) -> crate::Result<(usize, usize), Error> {
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
::: crates/paimon/src/error.rs:41:5
|
41 | / IoUnexpected {
42 | | message: String,
43 | | source: opendal::Error,
44 | | },
| |_____- the variant `IoUnexpected` contains at least 152 bytes
...
59 | / DataUnexpected {
60 | | message: String,
61 | | source: apache_avro::Error,
62 | | },
| |_____- the largest variant contains at least 280 bytes
|
= help: try reducing the size of `error::Error`, for example by boxing large elements or replacing it with `Box<error::Error>`
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err
error: could not compile `paimon` (lib) due to 28 previous errors
warning: build failed, waiting for other jobs to finish...
error: could not compile `paimon` (lib test) due to 32 previous errorsMetadata
Metadata
Assignees
Labels
No labels