Skip to content

Commit a78775b

Browse files
authored
added deprecated note (#1584)
Replaced the informal deprecation notice in the doc comment of `CustomNode::envs` with a proper `Rust #[deprecated]` attribute, so the compiler emits warnings when this field is used.
2 parents 552b56f + cb09e34 commit a78775b

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

libraries/message/src/descriptor.rs

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -678,9 +678,8 @@ pub struct CustomNode {
678678
/// Args for the executable.
679679
#[serde(default, skip_serializing_if = "Option::is_none")]
680680
pub args: Option<String>,
681-
/// Environment variables for the custom nodes
682-
///
683-
/// Deprecated, use outer-level `env` field instead.
681+
/// Environment variables for the custom nodes.
682+
#[deprecated(note = "Use the outer-level `env` field on `Node` instead")]
684683
pub envs: Option<BTreeMap<String, EnvValue>>,
685684
#[serde(default, skip_serializing_if = "Option::is_none")]
686685
pub build: Option<String>,

0 commit comments

Comments
 (0)