Replace em dashes with hyphens across docs and comments

This commit is contained in:
2026-08-29 08:13:54 +00:00
parent 1583f531fa
commit a2d4e578ec
21 changed files with 104 additions and 104 deletions
+6 -6
View File
@@ -1,7 +1,7 @@
//! The ongoing print-state push (root key "print"). Doesn't carry a
//! `CommandEnvelope` — no `sequence_id`/`command` seen on this one in the
//! `CommandEnvelope` - no `sequence_id`/`command` seen on this one in the
//! real capture, and it may genuinely not have them (an async push, not a
//! reply to a specific request) — revisit if a real capture proves
//! reply to a specific request) - revisit if a real capture proves
//! otherwise.
#[derive(serde::Deserialize, Debug)]
@@ -15,12 +15,12 @@ pub struct PrintReport {
pub xcam: Option<XcamSettings>,
pub xcam_status: Option<String>,
// The real payload has a lot more fields than shown here (this
// example was truncated) — add them the same way, one field per line,
// example was truncated) - add them the same way, one field per line,
// `Option<T>` for anything that isn't always present.
}
/// Bambu's own naming has the outer container and the inner array both
/// called `ams` — `print.ams.ams`, not a typo here, just what the printer
/// called `ams` - `print.ams.ams`, not a typo here, just what the printer
/// actually sends.
#[derive(serde::Deserialize, Debug)]
pub struct AmsState {
@@ -37,13 +37,13 @@ pub struct AmsUnit {
}
/// A tray slot is either empty (just `id`) or loaded (the full field set)
/// — two genuinely different shapes, not one shape with optional fields,
/// - two genuinely different shapes, not one shape with optional fields,
/// so this is an untagged enum rather than a struct full of `Option<T>`.
/// `#[serde(deny_unknown_fields)]` on `Empty` is load-bearing: untagged
/// enums try variants in order, and without it a *loaded* tray (which has
/// every field `Empty` allows, plus more) would incorrectly match `Empty`
/// first, since a plain struct doesn't reject extra fields by default.
/// Verified this the hard way — see git history.
/// Verified this the hard way - see git history.
#[derive(serde::Deserialize, Debug)]
#[serde(untagged)]
pub enum AmsTray {