Fix some compiler warnings

This commit is contained in:
Laurenz Stampfl 2025-07-20 00:16:11 +02:00
parent 5ef332caa4
commit a2df88db16
3 changed files with 3 additions and 4 deletions

View File

@ -14,12 +14,12 @@ use std::ffi::OsStr;
use std::fmt::{self, Debug, Formatter};
use std::sync::Arc;
use ecow::{eco_format, EcoString};
use ecow::EcoString;
use typst_library::{Feature, World};
use typst_syntax::{Span, Spanned};
use typst_utils::LazyHash;
use crate::diag::{bail, error, warning, At, LoadedWithin, SourceResult, StrResult};
use crate::diag::{bail, warning, At, LoadedWithin, SourceResult, StrResult};
use crate::engine::Engine;
use crate::foundations::{
cast, elem, func, scope, Bytes, Cast, Content, Derived, NativeElement, Packed, Smart,

View File

@ -1,4 +1,4 @@
use crate::diag::{LoadError, LoadResult, SourceResult};
use crate::diag::LoadResult;
use crate::foundations::Bytes;
use crate::text::{FontStretch, FontStyle, FontVariant, FontWeight};
use crate::World;

View File

@ -6,7 +6,6 @@ use tiny_skia as sk;
use tiny_skia::IntSize;
use typst_library::foundations::Smart;
use typst_library::layout::Size;
use typst_library::text::{FontBook, FontStretch, FontStyle, FontVariant, FontWeight};
use typst_library::visualize::{Image, ImageKind, ImageScaling, PdfImage};
use crate::{AbsExt, State};