diff --git a/src/common/datasource/src/error.rs b/src/common/datasource/src/error.rs index 8f062868a98e..cfaa5a19c041 100644 --- a/src/common/datasource/src/error.rs +++ b/src/common/datasource/src/error.rs @@ -180,7 +180,7 @@ pub enum Error { #[snafu(display("Failed to parse format {} with value: {}", key, value))] ParseFormat { - key: &'static str, + key: String, value: String, #[snafu(implicit)] location: Location, diff --git a/src/pipeline/src/etl/error.rs b/src/pipeline/src/etl/error.rs index 87743abaa394..45e485d04a44 100644 --- a/src/pipeline/src/etl/error.rs +++ b/src/pipeline/src/etl/error.rs @@ -58,7 +58,7 @@ pub enum Error { #[snafu(display("Processor {processor}: unsupported value {val}"))] ProcessorUnsupportedValue { - processor: &'static str, + processor: String, val: String, #[snafu(implicit)] location: Location, @@ -180,7 +180,7 @@ pub enum Error { #[snafu(display("Separator '{separator}' must be a single character, but got '{value}'"))] CsvSeparatorName { - separator: &'static str, + separator: String, value: String, #[snafu(implicit)] location: Location, @@ -188,7 +188,7 @@ pub enum Error { #[snafu(display("Quote '{quote}' must be a single character, but got '{value}'"))] CsvQuoteName { - quote: &'static str, + quote: String, value: String, #[snafu(implicit)] location: Location,