Skip to content

Fix result_large_err Clippy error #413

@a6dulaleem

Description

@a6dulaleem

Problem description
arning: the Err-variant returned from this function is very large
--> nodejs/src/stream_manager.rs:361:81
|
361 | fn delete_reader_group(&self, scope_name: &str, reader_group_name: &str) -> Result<(), TableError> {
| ^^^^^^^^^^^^^^^^^^^^^^ the Err-variant is at least 128 bytes
|
= help: try reducing the size of pravega_client::sync::table::TableError, for example by boxing large elements or replacing it with Box<pravega_client::sync::table::TableError>
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err

How Reproduce
Just run cargo clippy --workspace

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions