Clean up.
This commit is contained in:
		
							parent
							
								
									c501f7cedc
								
							
						
					
					
						commit
						7d73a3c948
					
				| @ -41,7 +41,7 @@ impl Dependency { | ||||
|                 } | ||||
|                 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.
 | ||||
|                 // TODO: When we add support for CSS outside the default environment, we should add support for dynamically picking which ones to copy here.
 | ||||
|                 Ok(()) | ||||
|  | ||||
| @ -1,5 +1,3 @@ | ||||
| use std::any::Any; | ||||
| 
 | ||||
| use super::macros::intermediate; | ||||
| use super::IObject; | ||||
| use crate::error::CustomError; | ||||
| @ -53,7 +51,7 @@ impl IParagraph { | ||||
|             .iter() | ||||
|             .filter(|c| match c { | ||||
|                 IObject::RegularLink(iregular_link) => match &iregular_link.target { | ||||
|                     super::LinkTarget::Image { src, alt } => true, | ||||
|                     super::LinkTarget::Image { src: _, alt: _ } => true, | ||||
|                     _ => false, | ||||
|                 }, | ||||
|                 _ => false, | ||||
| @ -62,7 +60,7 @@ impl IParagraph { | ||||
|         num_images == 1 | ||||
|             && self.children.iter().all(|c| match c { | ||||
|                 IObject::RegularLink(iregular_link) => match &iregular_link.target { | ||||
|                     super::LinkTarget::Image { src, alt } => true, | ||||
|                     super::LinkTarget::Image { src: _, alt: _ } => true, | ||||
|                     _ => false, | ||||
|                 }, | ||||
|                 IObject::PlainText(iplain_text) => { | ||||
|  | ||||
| @ -1,10 +1,8 @@ | ||||
| use std::borrow::Borrow; | ||||
| use std::borrow::Cow; | ||||
| 
 | ||||
| use super::macros::intermediate; | ||||
| use crate::error::CustomError; | ||||
| use organic::types::StandardProperties; | ||||
| use tree_sitter_highlight::Highlight; | ||||
| use tree_sitter_highlight::HighlightConfiguration; | ||||
| use tree_sitter_highlight::HighlightEvent; | ||||
| use tree_sitter_highlight::Highlighter; | ||||
|  | ||||
| @ -1,4 +1,3 @@ | ||||
| use super::macros::inoop; | ||||
| use super::macros::intermediate; | ||||
| use super::util::coalesce_whitespace; | ||||
| use crate::error::CustomError; | ||||
|  | ||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user
	 Tom Alexander
						Tom Alexander