4 Commits

Author SHA1 Message Date
nvrl b155830118 Merge pull request 'fixed tooling in ci' (#3) from release/0.1.0 into main
Release / Build and Release (push) Successful in 37s
Reviewed-on: #3
2026-03-30 00:32:41 +02:00
nvrl 27b97a69a7 fixed tooling in ci
CI / Lint and Test (pull_request) Successful in 36s
CI / Version Check (pull_request) Failing after 3s
2026-03-30 00:32:24 +02:00
nvrl a74d504bca Merge pull request 'cargo fmt' (#2) from release/0.1.0 into main
Release / Build and Release (push) Failing after 15s
Reviewed-on: #2
2026-03-30 00:31:22 +02:00
nvrl e98ff143a1 cargo fmt
CI / Lint and Test (pull_request) Successful in 37s
CI / Version Check (pull_request) Failing after 3s
2026-03-30 00:30:51 +02:00
4 changed files with 69 additions and 73 deletions
+1 -1
View File
@@ -22,7 +22,7 @@ jobs:
cache: false
- name: Install packaging tools
run: sudo apt-get update && sudo apt-get install -y dpkg-dev
run: apt-get update && apt-get install -y dpkg-dev
- name: Get Version
id: get_version
+1 -5
View File
@@ -173,11 +173,7 @@ fn decode_coordinate(data: &[u8], pos: usize) -> Result<(i16, u8, usize), Error>
Ok((value, flags, 2))
} else {
// 7-bit encoding (1 byte)
let value = if b > 0x3F {
b as i16 - 0x80
} else {
b as i16
};
let value = if b > 0x3F { b as i16 - 0x80 } else { b as i16 };
Ok((value, 0, 1))
}
}
+2 -2
View File
@@ -24,8 +24,8 @@ fn main() -> Result<()> {
let data = fs::read(&args.input)
.with_context(|| format!("failed to read {}", args.input.display()))?;
let png = rustitch::thumbnail(&data, args.size)
.with_context(|| "failed to generate thumbnail")?;
let png =
rustitch::thumbnail(&data, args.size).with_context(|| "failed to generate thumbnail")?;
fs::write(&args.output, &png)
.with_context(|| format!("failed to write {}", args.output.display()))?;