Clean up.

This commit is contained in:
Tom Alexander 2025-02-22 19:24:05 -05:00
parent c501f7cedc
commit 7d73a3c948
Signed by: talexander
GPG Key ID: D3A179C9A53C0EDE
4 changed files with 3 additions and 8 deletions

View File

@ -41,7 +41,7 @@ impl Dependency {
} }
Ok(()) Ok(())
} }
Dependency::CssFile { name } => { Dependency::CssFile { name: _ } => {
// We don't do anything because the CSS files are already copied into the output from natter's default environment. // We don't do anything because the CSS files are already copied into the output from natter's default environment.
// TODO: When we add support for CSS outside the default environment, we should add support for dynamically picking which ones to copy here. // TODO: When we add support for CSS outside the default environment, we should add support for dynamically picking which ones to copy here.
Ok(()) Ok(())

View File

@ -1,5 +1,3 @@
use std::any::Any;
use super::macros::intermediate; use super::macros::intermediate;
use super::IObject; use super::IObject;
use crate::error::CustomError; use crate::error::CustomError;
@ -53,7 +51,7 @@ impl IParagraph {
.iter() .iter()
.filter(|c| match c { .filter(|c| match c {
IObject::RegularLink(iregular_link) => match &iregular_link.target { IObject::RegularLink(iregular_link) => match &iregular_link.target {
super::LinkTarget::Image { src, alt } => true, super::LinkTarget::Image { src: _, alt: _ } => true,
_ => false, _ => false,
}, },
_ => false, _ => false,
@ -62,7 +60,7 @@ impl IParagraph {
num_images == 1 num_images == 1
&& self.children.iter().all(|c| match c { && self.children.iter().all(|c| match c {
IObject::RegularLink(iregular_link) => match &iregular_link.target { IObject::RegularLink(iregular_link) => match &iregular_link.target {
super::LinkTarget::Image { src, alt } => true, super::LinkTarget::Image { src: _, alt: _ } => true,
_ => false, _ => false,
}, },
IObject::PlainText(iplain_text) => { IObject::PlainText(iplain_text) => {

View File

@ -1,10 +1,8 @@
use std::borrow::Borrow; use std::borrow::Borrow;
use std::borrow::Cow;
use super::macros::intermediate; use super::macros::intermediate;
use crate::error::CustomError; use crate::error::CustomError;
use organic::types::StandardProperties; use organic::types::StandardProperties;
use tree_sitter_highlight::Highlight;
use tree_sitter_highlight::HighlightConfiguration; use tree_sitter_highlight::HighlightConfiguration;
use tree_sitter_highlight::HighlightEvent; use tree_sitter_highlight::HighlightEvent;
use tree_sitter_highlight::Highlighter; use tree_sitter_highlight::Highlighter;

View File

@ -1,4 +1,3 @@
use super::macros::inoop;
use super::macros::intermediate; use super::macros::intermediate;
use super::util::coalesce_whitespace; use super::util::coalesce_whitespace;
use crate::error::CustomError; use crate::error::CustomError;