{"$message_type":"diagnostic","message":"this argument is passed by value, but not consumed in the function body","code":{"code":"clippy::needless_pass_by_value","explanation":null},"level":"warning","spans":[{"file_name":"crates/store/src/migrate.rs","byte_start":3593,"byte_end":3594,"line_start":88,"line_end":88,"column_start":37,"column_end":38,"is_primary":true,"text":[{"text":"pub fn to_gzip<S: Storage>(storage: S) -> Result<Migrated, MigrationFailure> {","highlight_start":37,"highlight_end":38}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[{"message":"for further information visit https://rust-lang.github.io/rust-clippy/rust-1.96.0/index.html#needless_pass_by_value","code":null,"level":"help","spans":[],"children":[],"rendered":null},{"message":"`-W clippy::needless-pass-by-value` implied by `-W clippy::pedantic`","code":null,"level":"note","spans":[],"children":[],"rendered":null},{"message":"to override `-W clippy::pedantic` add `#[allow(clippy::needless_pass_by_value)]`","code":null,"level":"help","spans":[],"children":[],"rendered":null},{"message":"consider taking a reference instead","code":null,"level":"help","spans":[{"file_name":"crates/store/src/migrate.rs","byte_start":3593,"byte_end":3593,"line_start":88,"line_end":88,"column_start":37,"column_end":37,"is_primary":true,"text":[{"text":"pub fn to_gzip<S: Storage>(storage: S) -> Result<Migrated, MigrationFailure> {","highlight_start":37,"highlight_end":37}],"label":null,"suggested_replacement":"&","suggestion_applicability":"MaybeIncorrect","expansion":null}],"children":[],"rendered":null}],"rendered":"\u001b[1m\u001b[33mwarning\u001b[0m\u001b[1m: this argument is passed by value, but not consumed in the function body\u001b[0m\n  \u001b[1m\u001b[94m--> \u001b[0mcrates/store/src/migrate.rs:88:37\n   \u001b[1m\u001b[94m|\u001b[0m\n\u001b[1m\u001b[94m88\u001b[0m \u001b[1m\u001b[94m|\u001b[0m pub fn to_gzip<S: Storage>(storage: S) -> Result<Migrated, MigrationFailure> {\n   \u001b[1m\u001b[94m|\u001b[0m                                     \u001b[1m\u001b[33m^\u001b[0m\n   \u001b[1m\u001b[94m|\u001b[0m\n   \u001b[1m\u001b[94m= \u001b[0m\u001b[1mhelp\u001b[0m: for further information visit https://rust-lang.github.io/rust-clippy/rust-1.96.0/index.html#needless_pass_by_value\n   \u001b[1m\u001b[94m= \u001b[0m\u001b[1mnote\u001b[0m: `-W clippy::needless-pass-by-value` implied by `-W clippy::pedantic`\n   \u001b[1m\u001b[94m= \u001b[0m\u001b[1mhelp\u001b[0m: to override `-W clippy::pedantic` add `#[allow(clippy::needless_pass_by_value)]`\n\u001b[1m\u001b[96mhelp\u001b[0m: consider taking a reference instead\n   \u001b[1m\u001b[94m|\u001b[0m\n\u001b[1m\u001b[94m88\u001b[0m \u001b[1m\u001b[94m| \u001b[0mpub fn to_gzip<S: Storage>(storage: \u001b[92m&\u001b[0mS) -> Result<Migrated, MigrationFailure> {\n   \u001b[1m\u001b[94m|\u001b[0m                                     \u001b[92m+\u001b[0m\n\n"}
{"$message_type":"diagnostic","message":"1 warning emitted","code":null,"level":"warning","spans":[],"children":[],"rendered":"\u001b[1m\u001b[33mwarning\u001b[0m\u001b[1m: 1 warning emitted\u001b[0m\n\n"}
