Run cargo fix.

This commit is contained in:
Tom Alexander
2023-10-29 22:31:29 -04:00
parent ff57242434
commit ada11816fb
107 changed files with 248 additions and 248 deletions

View File

@@ -1,5 +1,5 @@
use super::macros::inoop;
use super::registry::Registry;
use crate::error::CustomError;
inoop!(IAngleLink, AngleLink);

View File

@@ -18,7 +18,7 @@ use super::plain_link::IPlainLink;
use super::plain_text::IPlainText;
use super::radio_link::IRadioLink;
use super::radio_target::IRadioTarget;
use super::registry::Registry;
use super::regular_link::IRegularLink;
use super::statistics_cookie::IStatisticsCookie;
use super::strike_through::IStrikeThrough;

View File

@@ -1,5 +1,5 @@
use super::macros::inoop;
use super::registry::Registry;
use crate::error::CustomError;
inoop!(IBabelCall, BabelCall);

View File

@@ -1,5 +1,5 @@
use super::macros::inoop;
use super::registry::Registry;
use crate::error::CustomError;
inoop!(IBold, Bold);

View File

@@ -1,5 +1,5 @@
use super::macros::inoop;
use super::registry::Registry;
use crate::error::CustomError;
inoop!(ICenterBlock, CenterBlock);

View File

@@ -1,5 +1,5 @@
use super::macros::inoop;
use super::registry::Registry;
use crate::error::CustomError;
inoop!(ICitation, Citation);

View File

@@ -1,5 +1,5 @@
use super::macros::inoop;
use super::registry::Registry;
use crate::error::CustomError;
inoop!(ICitationReference, CitationReference);

View File

@@ -1,5 +1,5 @@
use super::macros::inoop;
use super::registry::Registry;
use crate::error::CustomError;
inoop!(IClock, Clock);

View File

@@ -1,5 +1,5 @@
use super::macros::inoop;
use super::registry::Registry;
use crate::error::CustomError;
inoop!(ICode, Code);

View File

@@ -1,5 +1,5 @@
use super::macros::inoop;
use super::registry::Registry;
use crate::error::CustomError;
inoop!(IComment, Comment);

View File

@@ -1,5 +1,5 @@
use super::macros::inoop;
use super::registry::Registry;
use crate::error::CustomError;
inoop!(ICommentBlock, CommentBlock);

View File

@@ -1,5 +1,5 @@
use super::macros::inoop;
use super::registry::Registry;
use crate::error::CustomError;
inoop!(IDiarySexp, DiarySexp);

View File

@@ -1,6 +1,6 @@
use super::macros::iitem;
use super::macros::iselector;
use super::registry::Registry;
use super::IHeading;
use super::ISection;
use crate::error::CustomError;

View File

@@ -1,5 +1,5 @@
use super::macros::inoop;
use super::registry::Registry;
use crate::error::CustomError;
inoop!(IDrawer, Drawer);

View File

@@ -1,5 +1,5 @@
use super::macros::inoop;
use super::registry::Registry;
use crate::error::CustomError;
inoop!(IDynamicBlock, DynamicBlock);

View File

@@ -1,7 +1,7 @@
use super::comment::IComment;
use super::keyword::IKeyword;
use super::macros::iselector;
use super::registry::Registry;
use super::IBabelCall;
use super::ICenterBlock;
use super::IClock;

View File

@@ -1,5 +1,5 @@
use super::macros::intermediate;
use super::registry::Registry;
use crate::error::CustomError;
#[derive(Debug, Clone)]
@@ -7,7 +7,7 @@ pub(crate) struct IEntity {
pub(crate) html: String,
}
intermediate!(IEntity, Entity, original, registry, {
intermediate!(IEntity, Entity, original, _registry, {
Ok(IEntity {
html: original.html.to_owned(),
})

View File

@@ -1,5 +1,5 @@
use super::macros::inoop;
use super::registry::Registry;
use crate::error::CustomError;
inoop!(IExampleBlock, ExampleBlock);

View File

@@ -1,5 +1,5 @@
use super::macros::inoop;
use super::registry::Registry;
use crate::error::CustomError;
inoop!(IExportBlock, ExportBlock);

View File

@@ -1,5 +1,5 @@
use super::macros::inoop;
use super::registry::Registry;
use crate::error::CustomError;
inoop!(IExportSnippet, ExportSnippet);

View File

@@ -1,5 +1,5 @@
use super::macros::inoop;
use super::registry::Registry;
use crate::error::CustomError;
inoop!(IFixedWidthArea, FixedWidthArea);

View File

@@ -1,6 +1,6 @@
use super::macros::intermediate;
use super::registry::register_footnote_definition;
use super::registry::Registry;
use super::IAstNode;
use crate::error::CustomError;
use crate::intermediate::RefRegistry;
@@ -27,7 +27,7 @@ pub(crate) struct IRealFootnoteDefinition {
impl IRealFootnoteDefinition {
pub(crate) async fn new<'orig, 'parse>(
registry: RefRegistry<'orig, 'parse>,
_registry: RefRegistry<'orig, 'parse>,
footnote_id: usize,
contents: Vec<IAstNode>,
) -> Result<IRealFootnoteDefinition, CustomError> {

View File

@@ -1,6 +1,6 @@
use super::macros::intermediate;
use super::registry::get_footnote_reference_id;
use super::registry::Registry;
use crate::error::CustomError;
#[derive(Debug, Clone)]

View File

@@ -1,5 +1,5 @@
use super::macros::intermediate;
use super::registry::Registry;
use super::IDocumentElement;
use super::IObject;
use crate::error::CustomError;

View File

@@ -1,5 +1,5 @@
use super::macros::inoop;
use super::registry::Registry;
use crate::error::CustomError;
inoop!(IHorizontalRule, HorizontalRule);

View File

@@ -1,5 +1,5 @@
use super::macros::inoop;
use super::registry::Registry;
use crate::error::CustomError;
inoop!(IInlineBabelCall, InlineBabelCall);

View File

@@ -1,5 +1,5 @@
use super::macros::intermediate;
use super::registry::Registry;
use crate::error::CustomError;
#[derive(Debug, Clone)]
@@ -7,7 +7,7 @@ pub(crate) struct IInlineSourceBlock {
pub(crate) value: String,
}
intermediate!(IInlineSourceBlock, InlineSourceBlock, original, registry, {
intermediate!(IInlineSourceBlock, InlineSourceBlock, original, _registry, {
Ok(IInlineSourceBlock {
value: original.value.to_owned(),
})

View File

@@ -1,5 +1,5 @@
use super::macros::inoop;
use super::registry::Registry;
use crate::error::CustomError;
inoop!(IItalic, Italic);

View File

@@ -1,5 +1,5 @@
use super::macros::inoop;
use super::registry::Registry;
use crate::error::CustomError;
inoop!(IKeyword, Keyword);

View File

@@ -1,5 +1,5 @@
use super::macros::inoop;
use super::registry::Registry;
use crate::error::CustomError;
inoop!(ILatexEnvironment, LatexEnvironment);

View File

@@ -1,5 +1,5 @@
use super::macros::inoop;
use super::registry::Registry;
use crate::error::CustomError;
inoop!(ILatexFragment, LatexFragment);

View File

@@ -1,5 +1,5 @@
use super::macros::inoop;
use super::registry::Registry;
use crate::error::CustomError;
inoop!(ILineBreak, LineBreak);

View File

@@ -8,8 +8,8 @@ macro_rules! inoop {
impl $istruct {
pub(crate) async fn new<'reg, 'orig, 'parse>(
registry: crate::intermediate::RefRegistry<'orig, 'parse>,
original: &'orig organic::types::$pstruct<'parse>,
_registry: crate::intermediate::RefRegistry<'orig, 'parse>,
_original: &'orig organic::types::$pstruct<'parse>,
) -> Result<$istruct, CustomError> {
Ok($istruct {})
}

View File

@@ -20,7 +20,7 @@ use super::plain_link::IPlainLink;
use super::plain_text::IPlainText;
use super::radio_link::IRadioLink;
use super::radio_target::IRadioTarget;
use super::registry::Registry;
use super::regular_link::IRegularLink;
use super::statistics_cookie::IStatisticsCookie;
use super::strike_through::IStrikeThrough;

View File

@@ -1,5 +1,5 @@
use super::macros::inoop;
use super::registry::Registry;
use crate::error::CustomError;
inoop!(IOrgMacro, OrgMacro);

View File

@@ -3,7 +3,7 @@ use std::path::PathBuf;
use crate::error::CustomError;
use super::footnote_definition::IRealFootnoteDefinition;
use super::registry::Registry;
use super::IDocumentElement;
use super::IHeading;
use super::ISection;

View File

@@ -1,5 +1,5 @@
use super::macros::intermediate;
use super::registry::Registry;
use super::IObject;
use crate::error::CustomError;

View File

@@ -1,5 +1,5 @@
use super::macros::inoop;
use super::registry::Registry;
use crate::error::CustomError;
inoop!(IPlainLink, PlainLink);

View File

@@ -1,5 +1,5 @@
use super::macros::intermediate;
use super::registry::Registry;
use super::IPlainListItem;
use crate::error::CustomError;

View File

@@ -1,5 +1,5 @@
use super::macros::intermediate;
use super::registry::Registry;
use super::IElement;
use super::IObject;
use crate::error::CustomError;

View File

@@ -1,5 +1,5 @@
use super::macros::intermediate;
use super::registry::Registry;
use super::util::coalesce_whitespace;
use crate::error::CustomError;
@@ -8,7 +8,7 @@ pub(crate) struct IPlainText {
pub(crate) source: String,
}
intermediate!(IPlainText, PlainText, original, registry, {
intermediate!(IPlainText, PlainText, original, _registry, {
Ok(IPlainText {
source: coalesce_whitespace(original.source).into_owned(),
})

View File

@@ -1,5 +1,5 @@
use super::macros::inoop;
use super::registry::Registry;
use crate::error::CustomError;
inoop!(IPlanning, Planning);

View File

@@ -1,5 +1,5 @@
use super::macros::inoop;
use super::registry::Registry;
use crate::error::CustomError;
inoop!(IPropertyDrawer, PropertyDrawer);

View File

@@ -1,5 +1,5 @@
use super::macros::intermediate;
use super::registry::Registry;
use super::IElement;
use crate::error::CustomError;

View File

@@ -1,5 +1,5 @@
use super::macros::inoop;
use super::registry::Registry;
use crate::error::CustomError;
inoop!(IRadioLink, RadioLink);

View File

@@ -1,5 +1,5 @@
use super::macros::inoop;
use super::registry::Registry;
use crate::error::CustomError;
inoop!(IRadioTarget, RadioTarget);

View File

@@ -1,5 +1,5 @@
use super::macros::intermediate;
use super::registry::Registry;
use super::IObject;
use crate::error::CustomError;

View File

@@ -1,5 +1,5 @@
use super::macros::intermediate;
use super::registry::Registry;
use super::IElement;
use crate::error::CustomError;

View File

@@ -1,5 +1,5 @@
use super::macros::inoop;
use super::registry::Registry;
use crate::error::CustomError;
inoop!(ISpecialBlock, SpecialBlock);

View File

@@ -1,5 +1,5 @@
use super::macros::intermediate;
use super::registry::Registry;
use crate::error::CustomError;
#[derive(Debug, Clone)]
@@ -7,7 +7,7 @@ pub(crate) struct ISrcBlock {
pub(crate) lines: Vec<String>,
}
intermediate!(ISrcBlock, SrcBlock, original, registry, {
intermediate!(ISrcBlock, SrcBlock, original, _registry, {
let lines = original
.contents
.split_inclusive('\n')

View File

@@ -1,5 +1,5 @@
use super::macros::inoop;
use super::registry::Registry;
use crate::error::CustomError;
inoop!(IStatisticsCookie, StatisticsCookie);

View File

@@ -1,5 +1,5 @@
use super::macros::inoop;
use super::registry::Registry;
use crate::error::CustomError;
inoop!(IStrikeThrough, StrikeThrough);

View File

@@ -1,5 +1,5 @@
use super::macros::inoop;
use super::registry::Registry;
use crate::error::CustomError;
inoop!(ISubscript, Subscript);

View File

@@ -1,5 +1,5 @@
use super::macros::inoop;
use super::registry::Registry;
use crate::error::CustomError;
inoop!(ISuperscript, Superscript);

View File

@@ -1,5 +1,5 @@
use super::macros::inoop;
use super::registry::Registry;
use crate::error::CustomError;
inoop!(ITable, Table);

View File

@@ -1,5 +1,5 @@
use super::macros::intermediate;
use super::registry::Registry;
use crate::error::CustomError;
#[derive(Debug, Clone)]

View File

@@ -1,6 +1,6 @@
use crate::error::CustomError;
use super::macros::inoop;
use super::registry::Registry;
inoop!(ITimestamp, Timestamp);

View File

@@ -1,6 +1,6 @@
use crate::error::CustomError;
use super::macros::inoop;
use super::registry::Registry;
inoop!(IUnderline, Underline);

View File

@@ -1,6 +1,6 @@
use crate::error::CustomError;
use super::macros::inoop;
use super::registry::Registry;
inoop!(IVerbatim, Verbatim);

View File

@@ -1,6 +1,6 @@
use crate::error::CustomError;
use super::macros::inoop;
use super::registry::Registry;
inoop!(IVerseBlock, VerseBlock);