Skip to content

Commit

Permalink
fix: automatically fixable
Browse files Browse the repository at this point in the history
  • Loading branch information
LeoBorai committed Nov 28, 2024
1 parent 98ebe1a commit e1baf2d
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 7 deletions.
4 changes: 2 additions & 2 deletions 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 crates/fluvio-spu/src/smartengine/produce_batch.rs
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ pub struct ProduceBatchIterator<'a> {
len: usize,
}

impl<'a> SmartModuleInputBatch for ProduceBatch<'a> {
impl SmartModuleInputBatch for ProduceBatch<'_> {
fn records(&self) -> &Vec<u8> {
&self.records
}
Expand Down
2 changes: 1 addition & 1 deletion crates/fluvio-stream-dispatcher/src/metadata/k8.rs
Original file line number Diff line number Diff line change
Expand Up @@ -493,7 +493,7 @@ mod tests {
assert_eq!(updates.len(), 3);

assert!(
matches!(updates.first(), Some(LSUpdate::Mod(obj)) if obj.status.to_string().eq(""))
matches!(updates.first(), Some(LSUpdate::Mod(obj)) if obj.status.to_string().is_empty())
);
assert!(
matches!(updates.get(1), Some(LSUpdate::Mod(obj)) if obj.status.to_string().eq("new status"))
Expand Down
4 changes: 2 additions & 2 deletions crates/fluvio-stream-dispatcher/src/metadata/local.rs
Original file line number Diff line number Diff line change
Expand Up @@ -997,7 +997,7 @@ spec:
assert_eq!(updates.len(), 3);

assert!(
matches!(updates.first(), Some(LSUpdate::Mod(obj)) if obj.status.to_string().eq(""))
matches!(updates.first(), Some(LSUpdate::Mod(obj)) if obj.status.to_string().is_empty())
);
assert!(
matches!(updates.get(1), Some(LSUpdate::Mod(obj)) if obj.status.to_string().eq("new status"))
Expand Down Expand Up @@ -1214,7 +1214,7 @@ spec:
assert_eq!(updates1.len(), 3);

assert!(
matches!(updates1.first(), Some(LSUpdate::Mod(obj)) if obj.status.to_string().eq(""))
matches!(updates1.first(), Some(LSUpdate::Mod(obj)) if obj.status.to_string().is_empty())
);
assert!(
matches!(updates1.get(1), Some(LSUpdate::Mod(obj)) if obj.status.to_string().eq("new status"))
Expand Down
2 changes: 1 addition & 1 deletion release-tools/check-crate-version/toml-diff/src/display.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ use toml::{map::Map, Value as TomlValue};

use crate::{TomlChange, TomlDiff};

impl<'a> fmt::Display for TomlDiff<'a> {
impl fmt::Display for TomlDiff<'_> {
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
for change in &self.changes {
match change {
Expand Down

0 comments on commit e1baf2d

Please sign in to comment.