Describe behaviour directly instead of by reference to the Go version

- platform::mode documents the on-disk mode-bit layout (bits 31..19 =
  d a l T L D p S u g c t ?, low 9 bits = permissions).
- The snapshot module documents the LEB128 / zig-zag varints and the RFC
  3339 JSON timestamps, and states that snapshots written by mapsize 1.x
  load unchanged.
- Renames: GoTime -> JsonTime, go_duration -> fmt_duration, fixture
  testdata/go.msz -> testdata/v1.2.0.msz (a snapshot written by mapsize
  1.2.0), loads_go_snapshot -> loads_1_2_snapshot.
- --log / --log-level help says they are accepted and ignored.
This commit is contained in:
Andy Dixon
2026-10-08 20:08:34 +01:00
parent fcac50bae6
commit 9179281a94
19 changed files with 113 additions and 92 deletions
+2 -1
View File
@@ -651,7 +651,8 @@ impl Controller {
}
}
/// The OS error text without Rust's " (os error N)" suffix, matching Go.
/// The OS error text, lower-cased and without the " (os error N)" suffix,
/// e.g. "permission denied".
fn err_msg(e: &io::Error) -> String {
let s = e.to_string();
match s.rfind(" (os error ") {