Refactor export for strict Clippy checks

This commit is contained in:
Dylan M. Taylor
2026-10-27 23:12:51 +00:00
parent 166f706e3e
commit 5e75b9c3e6
4 changed files with 3 additions and 5 deletions
+1 -1
View File
@@ -1,6 +1,6 @@
use super::Zip;
use super::as_html::esc;
use super::layout::{Image, Item, Page, Table, body_size, items};
use super::*;
/// A colour's 8-bit sRGB components (NaN and out-of-range values clamp; NaN reads as 0).
pub(crate) fn rgb8(c: [f64; 3]) -> [u8; 3] {
+1 -1
View File
@@ -1,7 +1,7 @@
use super::as_docx::rgb8;
use super::as_html::allowed;
use super::layout::{Block, Item, Page, count_lookup_steps, items};
use super::*;
use std::collections::HashMap;
fn rtf_text(s: &str) -> String {
let mut o = String::new();
+1 -1
View File
@@ -1,4 +1,4 @@
use super::*;
use std::collections::HashMap;
/// A paragraph of a page.
#[derive(Clone, Debug, PartialEq)]
-2
View File
@@ -10,8 +10,6 @@
#![deny(clippy::unwrap_used, clippy::expect_used, clippy::panic, clippy::unimplemented, clippy::todo, clippy::unreachable)]
use std::collections::HashMap;
mod pptx;
mod zip;