Skip to content

Commit

Permalink
fix errors
Browse files Browse the repository at this point in the history
  • Loading branch information
jmstevers committed Feb 1, 2025
1 parent 9139789 commit 2c05c19
Show file tree
Hide file tree
Showing 4 changed files with 2 additions and 19 deletions.
5 changes: 0 additions & 5 deletions sdk/rust/src/execute_script.rs
Original file line number Diff line number Diff line change
Expand Up @@ -91,11 +91,6 @@ impl Into<DatastarEvent> for ExecuteScript {
fn into(self) -> DatastarEvent {
let mut data: Vec<String> = Vec::new();

data.push(format!(
"event: {}",
consts::EventType::ExecuteScript.as_str()
));

if self.auto_remove != consts::DEFAULT_EXECUTE_SCRIPT_AUTO_REMOVE {
data.push(format!(
"{} {}",
Expand Down
2 changes: 2 additions & 0 deletions sdk/rust/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,8 @@ impl Display for DatastarEvent {
writeln!(f, "data: {}", line)?;
}

write!(f, "\n\n")?;

Ok(())
}
}
8 changes: 0 additions & 8 deletions sdk/rust/src/merge_fragments.rs
Original file line number Diff line number Diff line change
Expand Up @@ -131,14 +131,6 @@ impl Into<DatastarEvent> for MergeFragments {
));
}

if let Some(selector) = &self.selector {
data.push(format!(
"{} {}",
consts::SELECTOR_DATALINE_LITERAL,
selector
));
}

if self.merge_mode != FragmentMergeMode::default() {
data.push(format!(
"{} {}",
Expand Down
6 changes: 0 additions & 6 deletions sdk/rust/src/merge_signals.rs
Original file line number Diff line number Diff line change
Expand Up @@ -80,12 +80,6 @@ impl Into<DatastarEvent> for MergeSignals {
fn into(self) -> DatastarEvent {
let mut data: Vec<String> = Vec::new();

data.push(format!(
"{} {}",
consts::SIGNALS_DATALINE_LITERAL,
self.signals
));

if self.only_if_missing != consts::DEFAULT_MERGE_SIGNALS_ONLY_IF_MISSING {
data.push(format!(
"{} {}",
Expand Down

0 comments on commit 2c05c19

Please sign in to comment.