Compare commits

...
2 Commits
Author SHA1 Message Date
haraldandClaude Opus 5.5 91a24b9f82 chore(release): bump version to 0.6.1
Build & Publish Release / Build Packages & Publish to Gitea (push) Successful in 11m45s
PDF importieren und annotiert exportieren (v0.6.0 scheiterte in der CI an Clippy).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-07 18:29:30 +02:00
haraldandClaude Opus 5.5 64e13e1155 fix(ci): Clippy-Hinweise seit Anhebung der Mindest-Rust-Version
Mit rust-version 1.92 meldet Clippy is_none_or statt map_or(true, …) und
as_chunks statt chunks_exact mit fester Größe; die CI bricht bei Warnungen ab.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-07 18:25:30 +02:00
5 changed files with 7 additions and 5 deletions

No files matched your search

Generated
+1 -1
View File
@@ -1378,7 +1378,7 @@ dependencies = [
[[package]]
name = "ink-notes"
version = "0.6.0"
version = "0.6.1"
dependencies = [
"arboard",
"bytemuck",
+1 -1
View File
@@ -1,6 +1,6 @@
[package]
name = "ink-notes"
version = "0.6.0"
version = "0.6.1"
edition = "2021"
description = "Latenzoptimierte Vektor-Notizbuch- und Inking-Anwendung für Linux"
repository = "https://gitea.pansi.eu/harald/ink-notes"
+1 -1
View File
@@ -615,7 +615,7 @@ impl Page {
let d = s.distance_to_point(pos);
if d <= max_dist {
let key = (s.is_image(), d);
if best.map_or(true, |(_, best_key)| key < best_key) {
if best.is_none_or(|(_, best_key)| key < best_key) {
best = Some((s, key));
}
}
+3 -1
View File
@@ -564,7 +564,9 @@ fn render_pdf_raster(
Ok(image) => {
let rgb = image
.pixels
.chunks_exact(4)
.as_chunks::<4>()
.0
.iter()
.flat_map(|px| [px[0], px[1], px[2]])
.collect();
rgb_xobject(image.width, image.height, rgb)
+1 -1
View File
@@ -238,7 +238,7 @@ impl ImageLayer {
let too_small = self
.vertex_buffer
.as_ref()
.map_or(true, |b| b.size() < bytes.len() as u64);
.is_none_or(|b| b.size() < bytes.len() as u64);
if too_small {
self.vertex_buffer = Some(device.create_buffer(&wgpu::BufferDescriptor {
label: Some("Image Vertex Buffer"),