Run cargo fix.
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
use super::macros::inoop;
|
||||
use super::registry::Registry;
|
||||
|
||||
use crate::error::CustomError;
|
||||
|
||||
inoop!(IAngleLink, AngleLink);
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
use super::macros::inoop;
|
||||
use super::registry::Registry;
|
||||
|
||||
use crate::error::CustomError;
|
||||
|
||||
inoop!(IBabelCall, BabelCall);
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
use super::macros::inoop;
|
||||
use super::registry::Registry;
|
||||
|
||||
use crate::error::CustomError;
|
||||
|
||||
inoop!(IBold, Bold);
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
use super::macros::inoop;
|
||||
use super::registry::Registry;
|
||||
|
||||
use crate::error::CustomError;
|
||||
|
||||
inoop!(ICenterBlock, CenterBlock);
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
use super::macros::inoop;
|
||||
use super::registry::Registry;
|
||||
|
||||
use crate::error::CustomError;
|
||||
|
||||
inoop!(ICitation, Citation);
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
use super::macros::inoop;
|
||||
use super::registry::Registry;
|
||||
|
||||
use crate::error::CustomError;
|
||||
|
||||
inoop!(ICitationReference, CitationReference);
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
use super::macros::inoop;
|
||||
use super::registry::Registry;
|
||||
|
||||
use crate::error::CustomError;
|
||||
|
||||
inoop!(IClock, Clock);
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
use super::macros::inoop;
|
||||
use super::registry::Registry;
|
||||
|
||||
use crate::error::CustomError;
|
||||
|
||||
inoop!(ICode, Code);
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
use super::macros::inoop;
|
||||
use super::registry::Registry;
|
||||
|
||||
use crate::error::CustomError;
|
||||
|
||||
inoop!(IComment, Comment);
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
use super::macros::inoop;
|
||||
use super::registry::Registry;
|
||||
|
||||
use crate::error::CustomError;
|
||||
|
||||
inoop!(ICommentBlock, CommentBlock);
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
use super::macros::inoop;
|
||||
use super::registry::Registry;
|
||||
|
||||
use crate::error::CustomError;
|
||||
|
||||
inoop!(IDiarySexp, DiarySexp);
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
use super::macros::inoop;
|
||||
use super::registry::Registry;
|
||||
|
||||
use crate::error::CustomError;
|
||||
|
||||
inoop!(IDrawer, Drawer);
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
use super::macros::inoop;
|
||||
use super::registry::Registry;
|
||||
|
||||
use crate::error::CustomError;
|
||||
|
||||
inoop!(IDynamicBlock, DynamicBlock);
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -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(),
|
||||
})
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
use super::macros::inoop;
|
||||
use super::registry::Registry;
|
||||
|
||||
use crate::error::CustomError;
|
||||
|
||||
inoop!(IExampleBlock, ExampleBlock);
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
use super::macros::inoop;
|
||||
use super::registry::Registry;
|
||||
|
||||
use crate::error::CustomError;
|
||||
|
||||
inoop!(IExportBlock, ExportBlock);
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
use super::macros::inoop;
|
||||
use super::registry::Registry;
|
||||
|
||||
use crate::error::CustomError;
|
||||
|
||||
inoop!(IExportSnippet, ExportSnippet);
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
use super::macros::inoop;
|
||||
use super::registry::Registry;
|
||||
|
||||
use crate::error::CustomError;
|
||||
|
||||
inoop!(IFixedWidthArea, FixedWidthArea);
|
||||
|
||||
@@ -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> {
|
||||
|
||||
@@ -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)]
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
use super::macros::intermediate;
|
||||
use super::registry::Registry;
|
||||
|
||||
use super::IDocumentElement;
|
||||
use super::IObject;
|
||||
use crate::error::CustomError;
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
use super::macros::inoop;
|
||||
use super::registry::Registry;
|
||||
|
||||
use crate::error::CustomError;
|
||||
|
||||
inoop!(IHorizontalRule, HorizontalRule);
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
use super::macros::inoop;
|
||||
use super::registry::Registry;
|
||||
|
||||
use crate::error::CustomError;
|
||||
|
||||
inoop!(IInlineBabelCall, InlineBabelCall);
|
||||
|
||||
@@ -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(),
|
||||
})
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
use super::macros::inoop;
|
||||
use super::registry::Registry;
|
||||
|
||||
use crate::error::CustomError;
|
||||
|
||||
inoop!(IItalic, Italic);
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
use super::macros::inoop;
|
||||
use super::registry::Registry;
|
||||
|
||||
use crate::error::CustomError;
|
||||
|
||||
inoop!(IKeyword, Keyword);
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
use super::macros::inoop;
|
||||
use super::registry::Registry;
|
||||
|
||||
use crate::error::CustomError;
|
||||
|
||||
inoop!(ILatexEnvironment, LatexEnvironment);
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
use super::macros::inoop;
|
||||
use super::registry::Registry;
|
||||
|
||||
use crate::error::CustomError;
|
||||
|
||||
inoop!(ILatexFragment, LatexFragment);
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
use super::macros::inoop;
|
||||
use super::registry::Registry;
|
||||
|
||||
use crate::error::CustomError;
|
||||
|
||||
inoop!(ILineBreak, LineBreak);
|
||||
|
||||
@@ -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 {})
|
||||
}
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
use super::macros::inoop;
|
||||
use super::registry::Registry;
|
||||
|
||||
use crate::error::CustomError;
|
||||
|
||||
inoop!(IOrgMacro, OrgMacro);
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
use super::macros::intermediate;
|
||||
use super::registry::Registry;
|
||||
|
||||
use super::IObject;
|
||||
use crate::error::CustomError;
|
||||
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
use super::macros::inoop;
|
||||
use super::registry::Registry;
|
||||
|
||||
use crate::error::CustomError;
|
||||
|
||||
inoop!(IPlainLink, PlainLink);
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
use super::macros::intermediate;
|
||||
use super::registry::Registry;
|
||||
|
||||
use super::IPlainListItem;
|
||||
use crate::error::CustomError;
|
||||
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
use super::macros::intermediate;
|
||||
use super::registry::Registry;
|
||||
|
||||
use super::IElement;
|
||||
use super::IObject;
|
||||
use crate::error::CustomError;
|
||||
|
||||
@@ -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(),
|
||||
})
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
use super::macros::inoop;
|
||||
use super::registry::Registry;
|
||||
|
||||
use crate::error::CustomError;
|
||||
|
||||
inoop!(IPlanning, Planning);
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
use super::macros::inoop;
|
||||
use super::registry::Registry;
|
||||
|
||||
use crate::error::CustomError;
|
||||
|
||||
inoop!(IPropertyDrawer, PropertyDrawer);
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
use super::macros::intermediate;
|
||||
use super::registry::Registry;
|
||||
|
||||
use super::IElement;
|
||||
use crate::error::CustomError;
|
||||
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
use super::macros::inoop;
|
||||
use super::registry::Registry;
|
||||
|
||||
use crate::error::CustomError;
|
||||
|
||||
inoop!(IRadioLink, RadioLink);
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
use super::macros::inoop;
|
||||
use super::registry::Registry;
|
||||
|
||||
use crate::error::CustomError;
|
||||
|
||||
inoop!(IRadioTarget, RadioTarget);
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
use super::macros::intermediate;
|
||||
use super::registry::Registry;
|
||||
|
||||
use super::IObject;
|
||||
use crate::error::CustomError;
|
||||
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
use super::macros::intermediate;
|
||||
use super::registry::Registry;
|
||||
|
||||
use super::IElement;
|
||||
use crate::error::CustomError;
|
||||
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
use super::macros::inoop;
|
||||
use super::registry::Registry;
|
||||
|
||||
use crate::error::CustomError;
|
||||
|
||||
inoop!(ISpecialBlock, SpecialBlock);
|
||||
|
||||
@@ -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')
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
use super::macros::inoop;
|
||||
use super::registry::Registry;
|
||||
|
||||
use crate::error::CustomError;
|
||||
|
||||
inoop!(IStatisticsCookie, StatisticsCookie);
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
use super::macros::inoop;
|
||||
use super::registry::Registry;
|
||||
|
||||
use crate::error::CustomError;
|
||||
|
||||
inoop!(IStrikeThrough, StrikeThrough);
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
use super::macros::inoop;
|
||||
use super::registry::Registry;
|
||||
|
||||
use crate::error::CustomError;
|
||||
|
||||
inoop!(ISubscript, Subscript);
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
use super::macros::inoop;
|
||||
use super::registry::Registry;
|
||||
|
||||
use crate::error::CustomError;
|
||||
|
||||
inoop!(ISuperscript, Superscript);
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
use super::macros::inoop;
|
||||
use super::registry::Registry;
|
||||
|
||||
use crate::error::CustomError;
|
||||
|
||||
inoop!(ITable, Table);
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
use super::macros::intermediate;
|
||||
use super::registry::Registry;
|
||||
|
||||
use crate::error::CustomError;
|
||||
|
||||
#[derive(Debug, Clone)]
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
use crate::error::CustomError;
|
||||
|
||||
use super::macros::inoop;
|
||||
use super::registry::Registry;
|
||||
|
||||
|
||||
inoop!(ITimestamp, Timestamp);
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
use crate::error::CustomError;
|
||||
|
||||
use super::macros::inoop;
|
||||
use super::registry::Registry;
|
||||
|
||||
|
||||
inoop!(IUnderline, Underline);
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
use crate::error::CustomError;
|
||||
|
||||
use super::macros::inoop;
|
||||
use super::registry::Registry;
|
||||
|
||||
|
||||
inoop!(IVerbatim, Verbatim);
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
use crate::error::CustomError;
|
||||
|
||||
use super::macros::inoop;
|
||||
use super::registry::Registry;
|
||||
|
||||
|
||||
inoop!(IVerseBlock, VerseBlock);
|
||||
|
||||
Reference in New Issue
Block a user