Skip to content

Commit

Permalink
[ISSUE #1035]🐛Fix clippy check error (#1036)
Browse files Browse the repository at this point in the history
  • Loading branch information
mxsm authored Oct 5, 2024
1 parent 5c08587 commit 70cb6c1
Show file tree
Hide file tree
Showing 12 changed files with 12 additions and 12 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -326,7 +326,7 @@ impl<'de> Deserialize<'de> for ConsumerOffsetWrapper {
fn deserialize<D: Deserializer<'de>>(deserializer: D) -> Result<Field, D::Error> {
struct FieldVisitor;

impl<'de> Visitor<'de> for FieldVisitor {
impl Visitor<'_> for FieldVisitor {
type Value = Field;

fn expecting(&self, formatter: &mut fmt::Formatter) -> fmt::Result {
Expand Down
2 changes: 1 addition & 1 deletion rocketmq-client/src/producer/local_transaction_state.rs
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ impl<'de> Deserialize<'de> for LocalTransactionState {
{
struct StoreTypeVisitor;

impl<'de> serde::de::Visitor<'de> for StoreTypeVisitor {
impl serde::de::Visitor<'_> for StoreTypeVisitor {
type Value = LocalTransactionState;

fn expecting(&self, formatter: &mut fmt::Formatter) -> fmt::Result {
Expand Down
2 changes: 1 addition & 1 deletion rocketmq-client/src/producer/send_status.rs
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ impl<'de> Deserialize<'de> for SendStatus {
{
struct StoreTypeVisitor;

impl<'de> serde::de::Visitor<'de> for StoreTypeVisitor {
impl serde::de::Visitor<'_> for StoreTypeVisitor {
type Value = SendStatus;

fn expecting(&self, formatter: &mut fmt::Formatter) -> fmt::Result {
Expand Down
2 changes: 1 addition & 1 deletion rocketmq-common/src/common.rs
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ impl<'de> Deserialize<'de> for TopicFilterType {
{
struct TopicFilterTypeVisitor;

impl<'de> serde::de::Visitor<'de> for TopicFilterTypeVisitor {
impl serde::de::Visitor<'_> for TopicFilterTypeVisitor {
type Value = TopicFilterType;

fn expecting(&self, formatter: &mut fmt::Formatter) -> fmt::Result {
Expand Down
2 changes: 1 addition & 1 deletion rocketmq-common/src/common/consumer/consume_from_where.rs
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ impl<'de> Deserialize<'de> for ConsumeFromWhere {
{
struct ConsumeFromWhereVisitor;

impl<'de> serde::de::Visitor<'de> for ConsumeFromWhereVisitor {
impl serde::de::Visitor<'_> for ConsumeFromWhereVisitor {
type Value = ConsumeFromWhere;

fn expecting(&self, formatter: &mut fmt::Formatter) -> fmt::Result {
Expand Down
2 changes: 1 addition & 1 deletion rocketmq-remoting/src/protocol/body/cm_result.rs
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ impl<'de> Deserialize<'de> for CMResult {
{
struct CMResultVisitor;

impl<'de> serde::de::Visitor<'de> for CMResultVisitor {
impl serde::de::Visitor<'_> for CMResultVisitor {
type Value = CMResult;

fn expecting(&self, formatter: &mut fmt::Formatter) -> fmt::Result {
Expand Down
2 changes: 1 addition & 1 deletion rocketmq-remoting/src/protocol/heartbeat/consume_type.rs
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ impl<'de> Deserialize<'de> for ConsumeType {
{
struct ConsumeTypeVisitor;

impl<'de> serde::de::Visitor<'de> for ConsumeTypeVisitor {
impl serde::de::Visitor<'_> for ConsumeTypeVisitor {
type Value = ConsumeType;

fn expecting(&self, formatter: &mut fmt::Formatter) -> fmt::Result {
Expand Down
2 changes: 1 addition & 1 deletion rocketmq-remoting/src/protocol/heartbeat/message_model.rs
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ impl<'de> Deserialize<'de> for MessageModel {
{
struct MessageModelVisitor;

impl<'de> serde::de::Visitor<'de> for MessageModelVisitor {
impl serde::de::Visitor<'_> for MessageModelVisitor {
type Value = MessageModel;

fn expecting(&self, formatter: &mut fmt::Formatter) -> fmt::Result {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ impl<'de> Deserialize<'de> for GroupRetryPolicyType {
{
struct GroupRetryPolicyTypeVisitor;

impl<'de> serde::de::Visitor<'de> for GroupRetryPolicyTypeVisitor {
impl serde::de::Visitor<'_> for GroupRetryPolicyTypeVisitor {
type Value = GroupRetryPolicyType;

fn expecting(&self, formatter: &mut fmt::Formatter) -> fmt::Result {
Expand Down
2 changes: 1 addition & 1 deletion rocketmq-store/src/base/store_enum.rs
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ impl<'de> Deserialize<'de> for StoreType {
{
struct StoreTypeVisitor;

impl<'de> serde::de::Visitor<'de> for StoreTypeVisitor {
impl serde::de::Visitor<'_> for StoreTypeVisitor {
type Value = StoreType;

fn expecting(&self, formatter: &mut fmt::Formatter) -> fmt::Result {
Expand Down
2 changes: 1 addition & 1 deletion rocketmq-store/src/config/broker_role.rs
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ impl<'de> Deserialize<'de> for BrokerRole {
{
struct BrokerRoleVisitor;

impl<'de> serde::de::Visitor<'de> for BrokerRoleVisitor {
impl serde::de::Visitor<'_> for BrokerRoleVisitor {
type Value = BrokerRole;

fn expecting(&self, formatter: &mut fmt::Formatter) -> fmt::Result {
Expand Down
2 changes: 1 addition & 1 deletion rocketmq-store/src/config/flush_disk_type.rs
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ impl<'de> Deserialize<'de> for FlushDiskType {
{
struct FlushDiskTypeVisitor;

impl<'de> serde::de::Visitor<'de> for FlushDiskTypeVisitor {
impl serde::de::Visitor<'_> for FlushDiskTypeVisitor {
type Value = FlushDiskType;

fn expecting(&self, formatter: &mut fmt::Formatter) -> fmt::Result {
Expand Down

0 comments on commit 70cb6c1

Please sign in to comment.