Format the tree the way the gate asks for it
`cargo fmt --check` is a required step and had drifted across 45 files. Most of it arrived this week: several operations were written in parallel worktrees and merged by hand, and a hand-merge resolves conflicts without ever running the formatter over the result. No behaviour changes — this is `cargo fmt --all` and nothing else, kept as its own commit so the next reader can skip it wholesale rather than search it for one that matters. Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -678,7 +678,8 @@ fn read_gps_entries(r: &TiffReader, entries: &[Entry]) -> Option<dr_types::Locat
|
||||
// still writes the entry.
|
||||
let degrees = |tag: u16, ref_tag: u16| -> Option<f64> {
|
||||
let e = find(tag)?;
|
||||
let d = r.rational(e, 0)? + r.rational(e, 1).unwrap_or(0.0) / 60.0
|
||||
let d = r.rational(e, 0)?
|
||||
+ r.rational(e, 1).unwrap_or(0.0) / 60.0
|
||||
+ r.rational(e, 2).unwrap_or(0.0) / 3600.0;
|
||||
// The magnitude is unsigned; the hemisphere is a letter beside it.
|
||||
let south_or_west = find(ref_tag)
|
||||
@@ -1412,7 +1413,9 @@ pub fn defects(tiff_data: &[u8]) -> Defects {
|
||||
/// skip one this build does not implement rather than abandoning the list —
|
||||
/// and lists mixing a warp with a defect map are ordinary.
|
||||
fn read_opcode_list(bytes: &[u8], out: &mut Defects) {
|
||||
let Some(count) = be_u32(bytes, 0) else { return };
|
||||
let Some(count) = be_u32(bytes, 0) else {
|
||||
return;
|
||||
};
|
||||
// A sensor has a handful of opcodes, not thousands. A huge count is a
|
||||
// corrupt or hostile file.
|
||||
if count > 256 {
|
||||
|
||||
Reference in New Issue
Block a user