Skip to content

Commit

Permalink
fix: correct the feature name (#275)
Browse files Browse the repository at this point in the history
* fix: correct the feature name

* chore: update
  • Loading branch information
Ggiggle authored Oct 18, 2024
1 parent cc9b6c8 commit cddd656
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion pilota/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "pilota"
version = "0.11.4"
version = "0.11.5"
edition = "2021"
description = "Pilota is a thrift and protobuf implementation in pure rust with high performance and extensibility."
documentation = "https://docs.rs/pilota"
Expand Down
2 changes: 1 addition & 1 deletion pilota/src/prost/encoding.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1582,7 +1582,7 @@ macro_rules! map {
let mut skip_key = key == &K::default();

Check warning on line 1582 in pilota/src/prost/encoding.rs

View workflow job for this annotation

GitHub Actions / clippy

value assigned to `skip_key` is never read

warning: value assigned to `skip_key` is never read --> pilota/src/prost/encoding.rs:1582:25 | 1582 | let mut skip_key = key == &K::default(); | ^^^^^^^^ ... 1687 | map!(BTreeMap); | -------------- in this macro invocation | = help: maybe it is overwritten before being read? = note: this warning originates in the macro `map` (in Nightly builds, run with -Z macro-backtrace for more info)

Check warning on line 1582 in pilota/src/prost/encoding.rs

View workflow job for this annotation

GitHub Actions / clippy

value assigned to `skip_key` is never read

warning: value assigned to `skip_key` is never read --> pilota/src/prost/encoding.rs:1582:25 | 1582 | let mut skip_key = key == &K::default(); | ^^^^^^^^ ... 1683 | map!(AHashMap); | -------------- in this macro invocation | = help: maybe it is overwritten before being read? = note: `#[warn(unused_assignments)]` on by default = note: this warning originates in the macro `map` (in Nightly builds, run with -Z macro-backtrace for more info)
let mut skip_val = val == val_default;

Check warning on line 1583 in pilota/src/prost/encoding.rs

View workflow job for this annotation

GitHub Actions / clippy

value assigned to `skip_val` is never read

warning: value assigned to `skip_val` is never read --> pilota/src/prost/encoding.rs:1583:25 | 1583 | let mut skip_val = val == val_default; | ^^^^^^^^ ... 1687 | map!(BTreeMap); | -------------- in this macro invocation | = help: maybe it is overwritten before being read? = note: this warning originates in the macro `map` (in Nightly builds, run with -Z macro-backtrace for more info)

Check warning on line 1583 in pilota/src/prost/encoding.rs

View workflow job for this annotation

GitHub Actions / clippy

value assigned to `skip_val` is never read

warning: value assigned to `skip_val` is never read --> pilota/src/prost/encoding.rs:1583:25 | 1583 | let mut skip_val = val == val_default; | ^^^^^^^^ ... 1683 | map!(AHashMap); | -------------- in this macro invocation | = help: maybe it is overwritten before being read? = note: this warning originates in the macro `map` (in Nightly builds, run with -Z macro-backtrace for more info)

#[cfg(feature = "pb-encode-zero-value")]
#[cfg(feature = "pb-encode-default-value")]
{
skip_key = false;
skip_val = false;
Expand Down

0 comments on commit cddd656

Please sign in to comment.