Skip to content

Commit 0477ab6

Browse files
author
Damion Werner
committed
make clippy happy
1 parent 9d3b32a commit 0477ab6

File tree

7 files changed

+54
-7
lines changed

7 files changed

+54
-7
lines changed

malstrom-core/Cargo.toml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,20 @@
22
name = "malstrom"
33
version = "0.1.0"
44
edition = "2021"
5+
description = "Malstrom is a distributed, stateful stream processing framework written in Rust."
6+
license = "MIT OR Apache-2.0"
7+
repository = "https://github.com/MalstromDevelopers/malstrom"
8+
readme = "../README.md"
9+
categories = [
10+
"concurrency",
11+
]
12+
keywords = [
13+
"stream processing",
14+
"data processing",
15+
"framework",
16+
"streaming",
17+
"distributed",
18+
]
519

620
[lints]
721
workspace = true

malstrom-core/src/coordinator/watchmap.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -75,9 +75,9 @@ where
7575
/// value and applies the function if the key is not already present.
7676
/// # Arguments
7777
///
78-
/// - `key` - The key associated with the value to be applied or defaulted.
79-
/// - `func` - A function that is applied to the value if the key exists, or to the default
80-
/// value if the key does not exist. It takes a mutable reference to the value.
78+
/// -`key` - The key associated with the value to be applied or defaulted.
79+
/// -`func` - A function that is applied to the value if the key exists, or to the default
80+
/// value if the key does not exist. It takes a mutable reference to the value.
8181
///
8282
/// After applying the function or inserting a default value, it triggers any pending
8383
/// notifications that depend on changes to the map.

malstrom-core/src/sources/stateful.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ where
105105

106106
let parts = parts.into_iter();
107107
let part_lister =
108-
OperatorBuilder::built_by(&format!("{}-list-parts", name), move |build_context| {
108+
OperatorBuilder::built_by(&format!("{name}-list-parts"), move |build_context| {
109109
let mut inner = if build_context.worker_id == 0 {
110110
Box::new(parts)
111111
} else {

malstrom-k8s/runtime/Cargo.toml

Lines changed: 18 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,23 @@
11
[package]
22
name = "malstrom-k8s"
3-
version = "0.2.0"
4-
edition = "2021"
3+
version = "0.1.0"
4+
edition = "2024"
5+
description = "Kubernetes runtime for the Malstrom stream processing framework"
6+
license = "MIT OR Apache-2.0"
7+
repository = "https://github.com/MalstromDevelopers/malstrom"
8+
readme = "../README.md"
9+
categories = [
10+
"concurrency",
11+
"api-bindings"
12+
]
13+
keywords = [
14+
"stream processing",
15+
"data processing",
16+
"streaming",
17+
"distributed",
18+
"kubernetes"
19+
]
20+
521

622
[dependencies]
723
async-stream = "0.3.6"

malstrom-k8s/runtime/src/communication/util.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ use tonic::Status;
33

44
use crate::CONFIG;
55

6+
#[allow(clippy::result_large_err)]
67
pub(super) fn decode_id(raw: &str) -> Result<u64, Status> {
78
raw.parse::<u64>()
89
.map_err(|e| Status::invalid_argument(format!("Invalid u64: {e:?}")))

malstrom-k8s/runtime/src/communication/worker_backend.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -192,6 +192,7 @@ impl WorkerService for WorkerGrpcServer {
192192

193193
/// Extract from_worker and operator from Metadata. Returning the appropriate status
194194
/// if they are not present or invalid
195+
#[allow(clippy::result_large_err)]
195196
fn extract_metadata(metadata: &MetadataMap) -> Result<(WorkerId, OperatorId), Status> {
196197
let operator = metadata
197198
.get("operator-id")

malstrom-kafka/Cargo.toml

Lines changed: 16 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,22 @@
11
[package]
22
name = "malstrom-kafka"
33
version = "0.1.0"
4-
edition = "2021"
4+
edition = "2024"
5+
description = "Kafka protocol sources and sinks for the Malstrom stream processing framework"
6+
license = "MIT OR Apache-2.0"
7+
repository = "https://github.com/MalstromDevelopers/malstrom"
8+
readme = "../README.md"
9+
categories = [
10+
"concurrency",
11+
"api-bindings"
12+
]
13+
keywords = [
14+
"stream processing",
15+
"data processing",
16+
"kafka",
17+
"streaming",
18+
"distributed",
19+
]
520

621
[dependencies]
722
bon = { version = "3.5.1", features = ["experimental-overwritable"] }

0 commit comments

Comments
 (0)