mirror of
https://github.com/storytold/pdfcraft.git
synced 2026-11-11 16:36:13 -06:00
Refactor export for strict Clippy checks
This commit is contained in:
@@ -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,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,4 +1,4 @@
|
||||
use super::*;
|
||||
use std::collections::HashMap;
|
||||
|
||||
/// A paragraph of a page.
|
||||
#[derive(Clone, Debug, PartialEq)]
|
||||
|
||||
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user