From ada11816fbb350aa6def127cba1124142739361b Mon Sep 17 00:00:00 2001 From: Tom Alexander Date: Sun, 29 Oct 2023 22:31:29 -0400 Subject: [PATCH] Run cargo fix. --- src/context/angle_link.rs | 8 ++++---- src/context/babel_call.rs | 8 ++++---- src/context/bold.rs | 8 ++++---- src/context/center_block.rs | 8 ++++---- src/context/citation.rs | 8 ++++---- src/context/citation_reference.rs | 8 ++++---- src/context/clock.rs | 8 ++++---- src/context/code.rs | 8 ++++---- src/context/comment.rs | 8 ++++---- src/context/comment_block.rs | 8 ++++---- src/context/diary_sexp.rs | 8 ++++---- src/context/drawer.rs | 8 ++++---- src/context/dynamic_block.rs | 8 ++++---- src/context/entity.rs | 6 +++--- src/context/example_block.rs | 8 ++++---- src/context/export_block.rs | 8 ++++---- src/context/export_snippet.rs | 8 ++++---- src/context/fixed_width_area.rs | 8 ++++---- src/context/footnote_definition.rs | 8 ++++---- src/context/footnote_reference.rs | 6 +++--- src/context/horizontal_rule.rs | 8 ++++---- src/context/inline_babel_call.rs | 8 ++++---- src/context/inline_source_block.rs | 6 +++--- src/context/italic.rs | 8 ++++---- src/context/keyword.rs | 8 ++++---- src/context/latex_environment.rs | 8 ++++---- src/context/latex_fragment.rs | 8 ++++---- src/context/line_break.rs | 8 ++++---- src/context/org_macro.rs | 8 ++++---- src/context/plain_link.rs | 8 ++++---- src/context/plain_text.rs | 6 +++--- src/context/planning.rs | 8 ++++---- src/context/property_drawer.rs | 8 ++++---- src/context/radio_link.rs | 8 ++++---- src/context/radio_target.rs | 8 ++++---- src/context/special_block.rs | 8 ++++---- src/context/src_block.rs | 6 +++--- src/context/statistics_cookie.rs | 8 ++++---- src/context/strike_through.rs | 8 ++++---- src/context/subscript.rs | 8 ++++---- src/context/superscript.rs | 8 ++++---- src/context/table.rs | 8 ++++---- src/context/target.rs | 6 +++--- src/context/timestamp.rs | 8 ++++---- src/context/underline.rs | 8 ++++---- src/context/verbatim.rs | 8 ++++---- src/context/verse_block.rs | 8 ++++---- src/intermediate/angle_link.rs | 2 +- src/intermediate/ast_node.rs | 2 +- src/intermediate/babel_call.rs | 2 +- src/intermediate/bold.rs | 2 +- src/intermediate/center_block.rs | 2 +- src/intermediate/citation.rs | 2 +- src/intermediate/citation_reference.rs | 2 +- src/intermediate/clock.rs | 2 +- src/intermediate/code.rs | 2 +- src/intermediate/comment.rs | 2 +- src/intermediate/comment_block.rs | 2 +- src/intermediate/diary_sexp.rs | 2 +- src/intermediate/document_element.rs | 2 +- src/intermediate/drawer.rs | 2 +- src/intermediate/dynamic_block.rs | 2 +- src/intermediate/element.rs | 2 +- src/intermediate/entity.rs | 4 ++-- src/intermediate/example_block.rs | 2 +- src/intermediate/export_block.rs | 2 +- src/intermediate/export_snippet.rs | 2 +- src/intermediate/fixed_width_area.rs | 2 +- src/intermediate/footnote_definition.rs | 4 ++-- src/intermediate/footnote_reference.rs | 2 +- src/intermediate/heading.rs | 2 +- src/intermediate/horizontal_rule.rs | 2 +- src/intermediate/inline_babel_call.rs | 2 +- src/intermediate/inline_source_block.rs | 4 ++-- src/intermediate/italic.rs | 2 +- src/intermediate/keyword.rs | 2 +- src/intermediate/latex_environment.rs | 2 +- src/intermediate/latex_fragment.rs | 2 +- src/intermediate/line_break.rs | 2 +- src/intermediate/macros.rs | 4 ++-- src/intermediate/object.rs | 2 +- src/intermediate/org_macro.rs | 2 +- src/intermediate/page.rs | 2 +- src/intermediate/paragraph.rs | 2 +- src/intermediate/plain_link.rs | 2 +- src/intermediate/plain_list.rs | 2 +- src/intermediate/plain_list_item.rs | 2 +- src/intermediate/plain_text.rs | 4 ++-- src/intermediate/planning.rs | 2 +- src/intermediate/property_drawer.rs | 2 +- src/intermediate/quote_block.rs | 2 +- src/intermediate/radio_link.rs | 2 +- src/intermediate/radio_target.rs | 2 +- src/intermediate/regular_link.rs | 2 +- src/intermediate/section.rs | 2 +- src/intermediate/special_block.rs | 2 +- src/intermediate/src_block.rs | 4 ++-- src/intermediate/statistics_cookie.rs | 2 +- src/intermediate/strike_through.rs | 2 +- src/intermediate/subscript.rs | 2 +- src/intermediate/superscript.rs | 2 +- src/intermediate/table.rs | 2 +- src/intermediate/target.rs | 2 +- src/intermediate/timestamp.rs | 2 +- src/intermediate/underline.rs | 2 +- src/intermediate/verbatim.rs | 2 +- src/intermediate/verse_block.rs | 2 +- 107 files changed, 248 insertions(+), 248 deletions(-) diff --git a/src/context/angle_link.rs b/src/context/angle_link.rs index 72e6df0..330d4e1 100644 --- a/src/context/angle_link.rs +++ b/src/context/angle_link.rs @@ -13,10 +13,10 @@ pub(crate) struct RenderAngleLink {} impl RenderAngleLink { pub(crate) fn new( - config: &Config, - output_directory: &Path, - output_file: &Path, - comment: &IAngleLink, + _config: &Config, + _output_directory: &Path, + _output_file: &Path, + _comment: &IAngleLink, ) -> Result { Ok(RenderAngleLink {}) } diff --git a/src/context/babel_call.rs b/src/context/babel_call.rs index f8ca4fe..272157e 100644 --- a/src/context/babel_call.rs +++ b/src/context/babel_call.rs @@ -13,10 +13,10 @@ pub(crate) struct RenderBabelCall {} impl RenderBabelCall { pub(crate) fn new( - config: &Config, - output_directory: &Path, - output_file: &Path, - original: &IBabelCall, + _config: &Config, + _output_directory: &Path, + _output_file: &Path, + _original: &IBabelCall, ) -> Result { Ok(RenderBabelCall {}) } diff --git a/src/context/bold.rs b/src/context/bold.rs index a6158f3..d531027 100644 --- a/src/context/bold.rs +++ b/src/context/bold.rs @@ -13,10 +13,10 @@ pub(crate) struct RenderBold {} impl RenderBold { pub(crate) fn new( - config: &Config, - output_directory: &Path, - output_file: &Path, - comment: &IBold, + _config: &Config, + _output_directory: &Path, + _output_file: &Path, + _comment: &IBold, ) -> Result { Ok(RenderBold {}) } diff --git a/src/context/center_block.rs b/src/context/center_block.rs index c1c26d4..e3a0b38 100644 --- a/src/context/center_block.rs +++ b/src/context/center_block.rs @@ -13,10 +13,10 @@ pub(crate) struct RenderCenterBlock {} impl RenderCenterBlock { pub(crate) fn new( - config: &Config, - output_directory: &Path, - output_file: &Path, - original: &ICenterBlock, + _config: &Config, + _output_directory: &Path, + _output_file: &Path, + _original: &ICenterBlock, ) -> Result { Ok(RenderCenterBlock {}) } diff --git a/src/context/citation.rs b/src/context/citation.rs index cea9028..9705365 100644 --- a/src/context/citation.rs +++ b/src/context/citation.rs @@ -13,10 +13,10 @@ pub(crate) struct RenderCitation {} impl RenderCitation { pub(crate) fn new( - config: &Config, - output_directory: &Path, - output_file: &Path, - comment: &ICitation, + _config: &Config, + _output_directory: &Path, + _output_file: &Path, + _comment: &ICitation, ) -> Result { Ok(RenderCitation {}) } diff --git a/src/context/citation_reference.rs b/src/context/citation_reference.rs index 61d3d8c..c10d8b6 100644 --- a/src/context/citation_reference.rs +++ b/src/context/citation_reference.rs @@ -13,10 +13,10 @@ pub(crate) struct RenderCitationReference {} impl RenderCitationReference { pub(crate) fn new( - config: &Config, - output_directory: &Path, - output_file: &Path, - comment: &ICitationReference, + _config: &Config, + _output_directory: &Path, + _output_file: &Path, + _comment: &ICitationReference, ) -> Result { Ok(RenderCitationReference {}) } diff --git a/src/context/clock.rs b/src/context/clock.rs index 814db1d..0eb7049 100644 --- a/src/context/clock.rs +++ b/src/context/clock.rs @@ -13,10 +13,10 @@ pub(crate) struct RenderClock {} impl RenderClock { pub(crate) fn new( - config: &Config, - output_directory: &Path, - output_file: &Path, - original: &IClock, + _config: &Config, + _output_directory: &Path, + _output_file: &Path, + _original: &IClock, ) -> Result { Ok(RenderClock {}) } diff --git a/src/context/code.rs b/src/context/code.rs index af4defe..ba59d98 100644 --- a/src/context/code.rs +++ b/src/context/code.rs @@ -13,10 +13,10 @@ pub(crate) struct RenderCode {} impl RenderCode { pub(crate) fn new( - config: &Config, - output_directory: &Path, - output_file: &Path, - comment: &ICode, + _config: &Config, + _output_directory: &Path, + _output_file: &Path, + _comment: &ICode, ) -> Result { Ok(RenderCode {}) } diff --git a/src/context/comment.rs b/src/context/comment.rs index 73d94b0..db44d42 100644 --- a/src/context/comment.rs +++ b/src/context/comment.rs @@ -13,10 +13,10 @@ pub(crate) struct RenderComment {} impl RenderComment { pub(crate) fn new( - config: &Config, - output_directory: &Path, - output_file: &Path, - comment: &IComment, + _config: &Config, + _output_directory: &Path, + _output_file: &Path, + _comment: &IComment, ) -> Result { Ok(RenderComment {}) } diff --git a/src/context/comment_block.rs b/src/context/comment_block.rs index dbe6fd4..0c1d194 100644 --- a/src/context/comment_block.rs +++ b/src/context/comment_block.rs @@ -13,10 +13,10 @@ pub(crate) struct RenderCommentBlock {} impl RenderCommentBlock { pub(crate) fn new( - config: &Config, - output_directory: &Path, - output_file: &Path, - original: &ICommentBlock, + _config: &Config, + _output_directory: &Path, + _output_file: &Path, + _original: &ICommentBlock, ) -> Result { Ok(RenderCommentBlock {}) } diff --git a/src/context/diary_sexp.rs b/src/context/diary_sexp.rs index 0513fb6..c45cdff 100644 --- a/src/context/diary_sexp.rs +++ b/src/context/diary_sexp.rs @@ -13,10 +13,10 @@ pub(crate) struct RenderDiarySexp {} impl RenderDiarySexp { pub(crate) fn new( - config: &Config, - output_directory: &Path, - output_file: &Path, - original: &IDiarySexp, + _config: &Config, + _output_directory: &Path, + _output_file: &Path, + _original: &IDiarySexp, ) -> Result { Ok(RenderDiarySexp {}) } diff --git a/src/context/drawer.rs b/src/context/drawer.rs index fca6c58..eb25a1b 100644 --- a/src/context/drawer.rs +++ b/src/context/drawer.rs @@ -13,10 +13,10 @@ pub(crate) struct RenderDrawer {} impl RenderDrawer { pub(crate) fn new( - config: &Config, - output_directory: &Path, - output_file: &Path, - original: &IDrawer, + _config: &Config, + _output_directory: &Path, + _output_file: &Path, + _original: &IDrawer, ) -> Result { Ok(RenderDrawer {}) } diff --git a/src/context/dynamic_block.rs b/src/context/dynamic_block.rs index 893d7c5..2a9e698 100644 --- a/src/context/dynamic_block.rs +++ b/src/context/dynamic_block.rs @@ -13,10 +13,10 @@ pub(crate) struct RenderDynamicBlock {} impl RenderDynamicBlock { pub(crate) fn new( - config: &Config, - output_directory: &Path, - output_file: &Path, - original: &IDynamicBlock, + _config: &Config, + _output_directory: &Path, + _output_file: &Path, + _original: &IDynamicBlock, ) -> Result { Ok(RenderDynamicBlock {}) } diff --git a/src/context/entity.rs b/src/context/entity.rs index 8807a6d..4cce5f3 100644 --- a/src/context/entity.rs +++ b/src/context/entity.rs @@ -15,9 +15,9 @@ pub(crate) struct RenderEntity { impl RenderEntity { pub(crate) fn new( - config: &Config, - output_directory: &Path, - output_file: &Path, + _config: &Config, + _output_directory: &Path, + _output_file: &Path, entity: &IEntity, ) -> Result { Ok(RenderEntity { diff --git a/src/context/example_block.rs b/src/context/example_block.rs index 1d37711..5a848a4 100644 --- a/src/context/example_block.rs +++ b/src/context/example_block.rs @@ -13,10 +13,10 @@ pub(crate) struct RenderExampleBlock {} impl RenderExampleBlock { pub(crate) fn new( - config: &Config, - output_directory: &Path, - output_file: &Path, - original: &IExampleBlock, + _config: &Config, + _output_directory: &Path, + _output_file: &Path, + _original: &IExampleBlock, ) -> Result { Ok(RenderExampleBlock {}) } diff --git a/src/context/export_block.rs b/src/context/export_block.rs index 347bffd..d81e3a2 100644 --- a/src/context/export_block.rs +++ b/src/context/export_block.rs @@ -13,10 +13,10 @@ pub(crate) struct RenderExportBlock {} impl RenderExportBlock { pub(crate) fn new( - config: &Config, - output_directory: &Path, - output_file: &Path, - original: &IExportBlock, + _config: &Config, + _output_directory: &Path, + _output_file: &Path, + _original: &IExportBlock, ) -> Result { Ok(RenderExportBlock {}) } diff --git a/src/context/export_snippet.rs b/src/context/export_snippet.rs index 903f7e5..1fb98ec 100644 --- a/src/context/export_snippet.rs +++ b/src/context/export_snippet.rs @@ -13,10 +13,10 @@ pub(crate) struct RenderExportSnippet {} impl RenderExportSnippet { pub(crate) fn new( - config: &Config, - output_directory: &Path, - output_file: &Path, - comment: &IExportSnippet, + _config: &Config, + _output_directory: &Path, + _output_file: &Path, + _comment: &IExportSnippet, ) -> Result { Ok(RenderExportSnippet {}) } diff --git a/src/context/fixed_width_area.rs b/src/context/fixed_width_area.rs index 2220967..fafd6cf 100644 --- a/src/context/fixed_width_area.rs +++ b/src/context/fixed_width_area.rs @@ -13,10 +13,10 @@ pub(crate) struct RenderFixedWidthArea {} impl RenderFixedWidthArea { pub(crate) fn new( - config: &Config, - output_directory: &Path, - output_file: &Path, - original: &IFixedWidthArea, + _config: &Config, + _output_directory: &Path, + _output_file: &Path, + _original: &IFixedWidthArea, ) -> Result { Ok(RenderFixedWidthArea {}) } diff --git a/src/context/footnote_definition.rs b/src/context/footnote_definition.rs index 877ec42..a8cb9ce 100644 --- a/src/context/footnote_definition.rs +++ b/src/context/footnote_definition.rs @@ -17,10 +17,10 @@ pub(crate) struct RenderFootnoteDefinition {} impl RenderFootnoteDefinition { pub(crate) fn new( - config: &Config, - output_directory: &Path, - output_file: &Path, - original: &IFootnoteDefinition, + _config: &Config, + _output_directory: &Path, + _output_file: &Path, + _original: &IFootnoteDefinition, ) -> Result { Ok(RenderFootnoteDefinition {}) } diff --git a/src/context/footnote_reference.rs b/src/context/footnote_reference.rs index 11d1622..6ccb536 100644 --- a/src/context/footnote_reference.rs +++ b/src/context/footnote_reference.rs @@ -17,9 +17,9 @@ pub(crate) struct RenderFootnoteReference { impl RenderFootnoteReference { pub(crate) fn new( - config: &Config, - output_directory: &Path, - output_file: &Path, + _config: &Config, + _output_directory: &Path, + _output_file: &Path, original: &IFootnoteReference, ) -> Result { Ok(RenderFootnoteReference { diff --git a/src/context/horizontal_rule.rs b/src/context/horizontal_rule.rs index d22316b..d33379c 100644 --- a/src/context/horizontal_rule.rs +++ b/src/context/horizontal_rule.rs @@ -13,10 +13,10 @@ pub(crate) struct RenderHorizontalRule {} impl RenderHorizontalRule { pub(crate) fn new( - config: &Config, - output_directory: &Path, - output_file: &Path, - original: &IHorizontalRule, + _config: &Config, + _output_directory: &Path, + _output_file: &Path, + _original: &IHorizontalRule, ) -> Result { Ok(RenderHorizontalRule {}) } diff --git a/src/context/inline_babel_call.rs b/src/context/inline_babel_call.rs index bfa5d87..bb99b65 100644 --- a/src/context/inline_babel_call.rs +++ b/src/context/inline_babel_call.rs @@ -13,10 +13,10 @@ pub(crate) struct RenderInlineBabelCall {} impl RenderInlineBabelCall { pub(crate) fn new( - config: &Config, - output_directory: &Path, - output_file: &Path, - comment: &IInlineBabelCall, + _config: &Config, + _output_directory: &Path, + _output_file: &Path, + _comment: &IInlineBabelCall, ) -> Result { Ok(RenderInlineBabelCall {}) } diff --git a/src/context/inline_source_block.rs b/src/context/inline_source_block.rs index 8aa3ced..ba09caf 100644 --- a/src/context/inline_source_block.rs +++ b/src/context/inline_source_block.rs @@ -15,9 +15,9 @@ pub(crate) struct RenderInlineSourceBlock { impl RenderInlineSourceBlock { pub(crate) fn new( - config: &Config, - output_directory: &Path, - output_file: &Path, + _config: &Config, + _output_directory: &Path, + _output_file: &Path, original: &IInlineSourceBlock, ) -> Result { Ok(RenderInlineSourceBlock { diff --git a/src/context/italic.rs b/src/context/italic.rs index 7aa1557..6f70997 100644 --- a/src/context/italic.rs +++ b/src/context/italic.rs @@ -13,10 +13,10 @@ pub(crate) struct RenderItalic {} impl RenderItalic { pub(crate) fn new( - config: &Config, - output_directory: &Path, - output_file: &Path, - comment: &IItalic, + _config: &Config, + _output_directory: &Path, + _output_file: &Path, + _comment: &IItalic, ) -> Result { Ok(RenderItalic {}) } diff --git a/src/context/keyword.rs b/src/context/keyword.rs index 99dc1c7..eb83e3e 100644 --- a/src/context/keyword.rs +++ b/src/context/keyword.rs @@ -13,10 +13,10 @@ pub(crate) struct RenderKeyword {} impl RenderKeyword { pub(crate) fn new( - config: &Config, - output_directory: &Path, - output_file: &Path, - keyword: &IKeyword, + _config: &Config, + _output_directory: &Path, + _output_file: &Path, + _keyword: &IKeyword, ) -> Result { Ok(RenderKeyword {}) } diff --git a/src/context/latex_environment.rs b/src/context/latex_environment.rs index 74fe81d..0bea9c6 100644 --- a/src/context/latex_environment.rs +++ b/src/context/latex_environment.rs @@ -13,10 +13,10 @@ pub(crate) struct RenderLatexEnvironment {} impl RenderLatexEnvironment { pub(crate) fn new( - config: &Config, - output_directory: &Path, - output_file: &Path, - original: &ILatexEnvironment, + _config: &Config, + _output_directory: &Path, + _output_file: &Path, + _original: &ILatexEnvironment, ) -> Result { Ok(RenderLatexEnvironment {}) } diff --git a/src/context/latex_fragment.rs b/src/context/latex_fragment.rs index 58ddddf..ceded7f 100644 --- a/src/context/latex_fragment.rs +++ b/src/context/latex_fragment.rs @@ -13,10 +13,10 @@ pub(crate) struct RenderLatexFragment {} impl RenderLatexFragment { pub(crate) fn new( - config: &Config, - output_directory: &Path, - output_file: &Path, - comment: &ILatexFragment, + _config: &Config, + _output_directory: &Path, + _output_file: &Path, + _comment: &ILatexFragment, ) -> Result { Ok(RenderLatexFragment {}) } diff --git a/src/context/line_break.rs b/src/context/line_break.rs index d804926..aaac49d 100644 --- a/src/context/line_break.rs +++ b/src/context/line_break.rs @@ -13,10 +13,10 @@ pub(crate) struct RenderLineBreak {} impl RenderLineBreak { pub(crate) fn new( - config: &Config, - output_directory: &Path, - output_file: &Path, - comment: &ILineBreak, + _config: &Config, + _output_directory: &Path, + _output_file: &Path, + _comment: &ILineBreak, ) -> Result { Ok(RenderLineBreak {}) } diff --git a/src/context/org_macro.rs b/src/context/org_macro.rs index abcdb83..7514a43 100644 --- a/src/context/org_macro.rs +++ b/src/context/org_macro.rs @@ -13,10 +13,10 @@ pub(crate) struct RenderOrgMacro {} impl RenderOrgMacro { pub(crate) fn new( - config: &Config, - output_directory: &Path, - output_file: &Path, - comment: &IOrgMacro, + _config: &Config, + _output_directory: &Path, + _output_file: &Path, + _comment: &IOrgMacro, ) -> Result { Ok(RenderOrgMacro {}) } diff --git a/src/context/plain_link.rs b/src/context/plain_link.rs index a0c6606..57c58ba 100644 --- a/src/context/plain_link.rs +++ b/src/context/plain_link.rs @@ -13,10 +13,10 @@ pub(crate) struct RenderPlainLink {} impl RenderPlainLink { pub(crate) fn new( - config: &Config, - output_directory: &Path, - output_file: &Path, - comment: &IPlainLink, + _config: &Config, + _output_directory: &Path, + _output_file: &Path, + _comment: &IPlainLink, ) -> Result { Ok(RenderPlainLink {}) } diff --git a/src/context/plain_text.rs b/src/context/plain_text.rs index 0e856fa..66fa8ff 100644 --- a/src/context/plain_text.rs +++ b/src/context/plain_text.rs @@ -15,9 +15,9 @@ pub(crate) struct RenderPlainText { impl RenderPlainText { pub(crate) fn new( - config: &Config, - output_directory: &Path, - output_file: &Path, + _config: &Config, + _output_directory: &Path, + _output_file: &Path, original: &IPlainText, ) -> Result { Ok(RenderPlainText { diff --git a/src/context/planning.rs b/src/context/planning.rs index 7be554c..b81d70d 100644 --- a/src/context/planning.rs +++ b/src/context/planning.rs @@ -13,10 +13,10 @@ pub(crate) struct RenderPlanning {} impl RenderPlanning { pub(crate) fn new( - config: &Config, - output_directory: &Path, - output_file: &Path, - original: &IPlanning, + _config: &Config, + _output_directory: &Path, + _output_file: &Path, + _original: &IPlanning, ) -> Result { Ok(RenderPlanning {}) } diff --git a/src/context/property_drawer.rs b/src/context/property_drawer.rs index 8e1bc6f..fcbbfe2 100644 --- a/src/context/property_drawer.rs +++ b/src/context/property_drawer.rs @@ -13,10 +13,10 @@ pub(crate) struct RenderPropertyDrawer {} impl RenderPropertyDrawer { pub(crate) fn new( - config: &Config, - output_directory: &Path, - output_file: &Path, - original: &IPropertyDrawer, + _config: &Config, + _output_directory: &Path, + _output_file: &Path, + _original: &IPropertyDrawer, ) -> Result { Ok(RenderPropertyDrawer {}) } diff --git a/src/context/radio_link.rs b/src/context/radio_link.rs index 2c41bfd..57b47c0 100644 --- a/src/context/radio_link.rs +++ b/src/context/radio_link.rs @@ -13,10 +13,10 @@ pub(crate) struct RenderRadioLink {} impl RenderRadioLink { pub(crate) fn new( - config: &Config, - output_directory: &Path, - output_file: &Path, - comment: &IRadioLink, + _config: &Config, + _output_directory: &Path, + _output_file: &Path, + _comment: &IRadioLink, ) -> Result { Ok(RenderRadioLink {}) } diff --git a/src/context/radio_target.rs b/src/context/radio_target.rs index 7be7452..2e32b9c 100644 --- a/src/context/radio_target.rs +++ b/src/context/radio_target.rs @@ -13,10 +13,10 @@ pub(crate) struct RenderRadioTarget {} impl RenderRadioTarget { pub(crate) fn new( - config: &Config, - output_directory: &Path, - output_file: &Path, - comment: &IRadioTarget, + _config: &Config, + _output_directory: &Path, + _output_file: &Path, + _comment: &IRadioTarget, ) -> Result { Ok(RenderRadioTarget {}) } diff --git a/src/context/special_block.rs b/src/context/special_block.rs index 085be8b..3646d51 100644 --- a/src/context/special_block.rs +++ b/src/context/special_block.rs @@ -13,10 +13,10 @@ pub(crate) struct RenderSpecialBlock {} impl RenderSpecialBlock { pub(crate) fn new( - config: &Config, - output_directory: &Path, - output_file: &Path, - original: &ISpecialBlock, + _config: &Config, + _output_directory: &Path, + _output_file: &Path, + _original: &ISpecialBlock, ) -> Result { Ok(RenderSpecialBlock {}) } diff --git a/src/context/src_block.rs b/src/context/src_block.rs index 6c06124..dd6402a 100644 --- a/src/context/src_block.rs +++ b/src/context/src_block.rs @@ -15,9 +15,9 @@ pub(crate) struct RenderSrcBlock { impl RenderSrcBlock { pub(crate) fn new( - config: &Config, - output_directory: &Path, - output_file: &Path, + _config: &Config, + _output_directory: &Path, + _output_file: &Path, original: &ISrcBlock, ) -> Result { Ok(RenderSrcBlock { diff --git a/src/context/statistics_cookie.rs b/src/context/statistics_cookie.rs index 33ff1fa..a66845d 100644 --- a/src/context/statistics_cookie.rs +++ b/src/context/statistics_cookie.rs @@ -13,10 +13,10 @@ pub(crate) struct RenderStatisticsCookie {} impl RenderStatisticsCookie { pub(crate) fn new( - config: &Config, - output_directory: &Path, - output_file: &Path, - comment: &IStatisticsCookie, + _config: &Config, + _output_directory: &Path, + _output_file: &Path, + _comment: &IStatisticsCookie, ) -> Result { Ok(RenderStatisticsCookie {}) } diff --git a/src/context/strike_through.rs b/src/context/strike_through.rs index 22b4269..92d3c9b 100644 --- a/src/context/strike_through.rs +++ b/src/context/strike_through.rs @@ -13,10 +13,10 @@ pub(crate) struct RenderStrikeThrough {} impl RenderStrikeThrough { pub(crate) fn new( - config: &Config, - output_directory: &Path, - output_file: &Path, - comment: &IStrikeThrough, + _config: &Config, + _output_directory: &Path, + _output_file: &Path, + _comment: &IStrikeThrough, ) -> Result { Ok(RenderStrikeThrough {}) } diff --git a/src/context/subscript.rs b/src/context/subscript.rs index 78596ad..db2bb37 100644 --- a/src/context/subscript.rs +++ b/src/context/subscript.rs @@ -13,10 +13,10 @@ pub(crate) struct RenderSubscript {} impl RenderSubscript { pub(crate) fn new( - config: &Config, - output_directory: &Path, - output_file: &Path, - comment: &ISubscript, + _config: &Config, + _output_directory: &Path, + _output_file: &Path, + _comment: &ISubscript, ) -> Result { Ok(RenderSubscript {}) } diff --git a/src/context/superscript.rs b/src/context/superscript.rs index 99b07bb..43c4bfc 100644 --- a/src/context/superscript.rs +++ b/src/context/superscript.rs @@ -13,10 +13,10 @@ pub(crate) struct RenderSuperscript {} impl RenderSuperscript { pub(crate) fn new( - config: &Config, - output_directory: &Path, - output_file: &Path, - comment: &ISuperscript, + _config: &Config, + _output_directory: &Path, + _output_file: &Path, + _comment: &ISuperscript, ) -> Result { Ok(RenderSuperscript {}) } diff --git a/src/context/table.rs b/src/context/table.rs index 9d067bd..a549858 100644 --- a/src/context/table.rs +++ b/src/context/table.rs @@ -13,10 +13,10 @@ pub(crate) struct RenderTable {} impl RenderTable { pub(crate) fn new( - config: &Config, - output_directory: &Path, - output_file: &Path, - original: &ITable, + _config: &Config, + _output_directory: &Path, + _output_file: &Path, + _original: &ITable, ) -> Result { Ok(RenderTable {}) } diff --git a/src/context/target.rs b/src/context/target.rs index 22f8aec..7bacbbc 100644 --- a/src/context/target.rs +++ b/src/context/target.rs @@ -15,9 +15,9 @@ pub(crate) struct RenderTarget { impl RenderTarget { pub(crate) fn new( - config: &Config, - output_directory: &Path, - output_file: &Path, + _config: &Config, + _output_directory: &Path, + _output_file: &Path, target: &ITarget, ) -> Result { Ok(RenderTarget { diff --git a/src/context/timestamp.rs b/src/context/timestamp.rs index bc28ef5..2995aa1 100644 --- a/src/context/timestamp.rs +++ b/src/context/timestamp.rs @@ -13,10 +13,10 @@ pub(crate) struct RenderTimestamp {} impl RenderTimestamp { pub(crate) fn new( - config: &Config, - output_directory: &Path, - output_file: &Path, - comment: &ITimestamp, + _config: &Config, + _output_directory: &Path, + _output_file: &Path, + _comment: &ITimestamp, ) -> Result { Ok(RenderTimestamp {}) } diff --git a/src/context/underline.rs b/src/context/underline.rs index 05ed24e..2573e7f 100644 --- a/src/context/underline.rs +++ b/src/context/underline.rs @@ -13,10 +13,10 @@ pub(crate) struct RenderUnderline {} impl RenderUnderline { pub(crate) fn new( - config: &Config, - output_directory: &Path, - output_file: &Path, - comment: &IUnderline, + _config: &Config, + _output_directory: &Path, + _output_file: &Path, + _comment: &IUnderline, ) -> Result { Ok(RenderUnderline {}) } diff --git a/src/context/verbatim.rs b/src/context/verbatim.rs index a0f6262..d114631 100644 --- a/src/context/verbatim.rs +++ b/src/context/verbatim.rs @@ -13,10 +13,10 @@ pub(crate) struct RenderVerbatim {} impl RenderVerbatim { pub(crate) fn new( - config: &Config, - output_directory: &Path, - output_file: &Path, - comment: &IVerbatim, + _config: &Config, + _output_directory: &Path, + _output_file: &Path, + _comment: &IVerbatim, ) -> Result { Ok(RenderVerbatim {}) } diff --git a/src/context/verse_block.rs b/src/context/verse_block.rs index a667cab..94834e8 100644 --- a/src/context/verse_block.rs +++ b/src/context/verse_block.rs @@ -13,10 +13,10 @@ pub(crate) struct RenderVerseBlock {} impl RenderVerseBlock { pub(crate) fn new( - config: &Config, - output_directory: &Path, - output_file: &Path, - original: &IVerseBlock, + _config: &Config, + _output_directory: &Path, + _output_file: &Path, + _original: &IVerseBlock, ) -> Result { Ok(RenderVerseBlock {}) } diff --git a/src/intermediate/angle_link.rs b/src/intermediate/angle_link.rs index 736def0..8852e4e 100644 --- a/src/intermediate/angle_link.rs +++ b/src/intermediate/angle_link.rs @@ -1,5 +1,5 @@ use super::macros::inoop; -use super::registry::Registry; + use crate::error::CustomError; inoop!(IAngleLink, AngleLink); diff --git a/src/intermediate/ast_node.rs b/src/intermediate/ast_node.rs index c205e19..1288eee 100644 --- a/src/intermediate/ast_node.rs +++ b/src/intermediate/ast_node.rs @@ -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; diff --git a/src/intermediate/babel_call.rs b/src/intermediate/babel_call.rs index cffc2e5..62d5757 100644 --- a/src/intermediate/babel_call.rs +++ b/src/intermediate/babel_call.rs @@ -1,5 +1,5 @@ use super::macros::inoop; -use super::registry::Registry; + use crate::error::CustomError; inoop!(IBabelCall, BabelCall); diff --git a/src/intermediate/bold.rs b/src/intermediate/bold.rs index bee42d1..6c4554b 100644 --- a/src/intermediate/bold.rs +++ b/src/intermediate/bold.rs @@ -1,5 +1,5 @@ use super::macros::inoop; -use super::registry::Registry; + use crate::error::CustomError; inoop!(IBold, Bold); diff --git a/src/intermediate/center_block.rs b/src/intermediate/center_block.rs index 3b93a29..14541d3 100644 --- a/src/intermediate/center_block.rs +++ b/src/intermediate/center_block.rs @@ -1,5 +1,5 @@ use super::macros::inoop; -use super::registry::Registry; + use crate::error::CustomError; inoop!(ICenterBlock, CenterBlock); diff --git a/src/intermediate/citation.rs b/src/intermediate/citation.rs index 916ff72..e4971b0 100644 --- a/src/intermediate/citation.rs +++ b/src/intermediate/citation.rs @@ -1,5 +1,5 @@ use super::macros::inoop; -use super::registry::Registry; + use crate::error::CustomError; inoop!(ICitation, Citation); diff --git a/src/intermediate/citation_reference.rs b/src/intermediate/citation_reference.rs index f7b2e9b..1d4b955 100644 --- a/src/intermediate/citation_reference.rs +++ b/src/intermediate/citation_reference.rs @@ -1,5 +1,5 @@ use super::macros::inoop; -use super::registry::Registry; + use crate::error::CustomError; inoop!(ICitationReference, CitationReference); diff --git a/src/intermediate/clock.rs b/src/intermediate/clock.rs index 056d582..53f878f 100644 --- a/src/intermediate/clock.rs +++ b/src/intermediate/clock.rs @@ -1,5 +1,5 @@ use super::macros::inoop; -use super::registry::Registry; + use crate::error::CustomError; inoop!(IClock, Clock); diff --git a/src/intermediate/code.rs b/src/intermediate/code.rs index 01d7dbe..b077f18 100644 --- a/src/intermediate/code.rs +++ b/src/intermediate/code.rs @@ -1,5 +1,5 @@ use super::macros::inoop; -use super::registry::Registry; + use crate::error::CustomError; inoop!(ICode, Code); diff --git a/src/intermediate/comment.rs b/src/intermediate/comment.rs index 19c706a..1a36791 100644 --- a/src/intermediate/comment.rs +++ b/src/intermediate/comment.rs @@ -1,5 +1,5 @@ use super::macros::inoop; -use super::registry::Registry; + use crate::error::CustomError; inoop!(IComment, Comment); diff --git a/src/intermediate/comment_block.rs b/src/intermediate/comment_block.rs index 89f4bc3..a65d6b4 100644 --- a/src/intermediate/comment_block.rs +++ b/src/intermediate/comment_block.rs @@ -1,5 +1,5 @@ use super::macros::inoop; -use super::registry::Registry; + use crate::error::CustomError; inoop!(ICommentBlock, CommentBlock); diff --git a/src/intermediate/diary_sexp.rs b/src/intermediate/diary_sexp.rs index ebc7b3b..e256852 100644 --- a/src/intermediate/diary_sexp.rs +++ b/src/intermediate/diary_sexp.rs @@ -1,5 +1,5 @@ use super::macros::inoop; -use super::registry::Registry; + use crate::error::CustomError; inoop!(IDiarySexp, DiarySexp); diff --git a/src/intermediate/document_element.rs b/src/intermediate/document_element.rs index 8f6b608..d8ee0f5 100644 --- a/src/intermediate/document_element.rs +++ b/src/intermediate/document_element.rs @@ -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; diff --git a/src/intermediate/drawer.rs b/src/intermediate/drawer.rs index 4a1c0a3..9b23719 100644 --- a/src/intermediate/drawer.rs +++ b/src/intermediate/drawer.rs @@ -1,5 +1,5 @@ use super::macros::inoop; -use super::registry::Registry; + use crate::error::CustomError; inoop!(IDrawer, Drawer); diff --git a/src/intermediate/dynamic_block.rs b/src/intermediate/dynamic_block.rs index fc8cbaf..3094839 100644 --- a/src/intermediate/dynamic_block.rs +++ b/src/intermediate/dynamic_block.rs @@ -1,5 +1,5 @@ use super::macros::inoop; -use super::registry::Registry; + use crate::error::CustomError; inoop!(IDynamicBlock, DynamicBlock); diff --git a/src/intermediate/element.rs b/src/intermediate/element.rs index 1e1f2ae..4769986 100644 --- a/src/intermediate/element.rs +++ b/src/intermediate/element.rs @@ -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; diff --git a/src/intermediate/entity.rs b/src/intermediate/entity.rs index 0f47742..b2043ed 100644 --- a/src/intermediate/entity.rs +++ b/src/intermediate/entity.rs @@ -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(), }) diff --git a/src/intermediate/example_block.rs b/src/intermediate/example_block.rs index 953c4d5..bcb00c0 100644 --- a/src/intermediate/example_block.rs +++ b/src/intermediate/example_block.rs @@ -1,5 +1,5 @@ use super::macros::inoop; -use super::registry::Registry; + use crate::error::CustomError; inoop!(IExampleBlock, ExampleBlock); diff --git a/src/intermediate/export_block.rs b/src/intermediate/export_block.rs index 2792eda..d2b001f 100644 --- a/src/intermediate/export_block.rs +++ b/src/intermediate/export_block.rs @@ -1,5 +1,5 @@ use super::macros::inoop; -use super::registry::Registry; + use crate::error::CustomError; inoop!(IExportBlock, ExportBlock); diff --git a/src/intermediate/export_snippet.rs b/src/intermediate/export_snippet.rs index 7f23280..4534303 100644 --- a/src/intermediate/export_snippet.rs +++ b/src/intermediate/export_snippet.rs @@ -1,5 +1,5 @@ use super::macros::inoop; -use super::registry::Registry; + use crate::error::CustomError; inoop!(IExportSnippet, ExportSnippet); diff --git a/src/intermediate/fixed_width_area.rs b/src/intermediate/fixed_width_area.rs index 6bed813..ef6db8e 100644 --- a/src/intermediate/fixed_width_area.rs +++ b/src/intermediate/fixed_width_area.rs @@ -1,5 +1,5 @@ use super::macros::inoop; -use super::registry::Registry; + use crate::error::CustomError; inoop!(IFixedWidthArea, FixedWidthArea); diff --git a/src/intermediate/footnote_definition.rs b/src/intermediate/footnote_definition.rs index 4d0ae61..424c56f 100644 --- a/src/intermediate/footnote_definition.rs +++ b/src/intermediate/footnote_definition.rs @@ -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, ) -> Result { diff --git a/src/intermediate/footnote_reference.rs b/src/intermediate/footnote_reference.rs index aa473d2..f9f448c 100644 --- a/src/intermediate/footnote_reference.rs +++ b/src/intermediate/footnote_reference.rs @@ -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)] diff --git a/src/intermediate/heading.rs b/src/intermediate/heading.rs index 716545f..9446068 100644 --- a/src/intermediate/heading.rs +++ b/src/intermediate/heading.rs @@ -1,5 +1,5 @@ use super::macros::intermediate; -use super::registry::Registry; + use super::IDocumentElement; use super::IObject; use crate::error::CustomError; diff --git a/src/intermediate/horizontal_rule.rs b/src/intermediate/horizontal_rule.rs index bc9e323..8a2d342 100644 --- a/src/intermediate/horizontal_rule.rs +++ b/src/intermediate/horizontal_rule.rs @@ -1,5 +1,5 @@ use super::macros::inoop; -use super::registry::Registry; + use crate::error::CustomError; inoop!(IHorizontalRule, HorizontalRule); diff --git a/src/intermediate/inline_babel_call.rs b/src/intermediate/inline_babel_call.rs index cf1137a..2f60310 100644 --- a/src/intermediate/inline_babel_call.rs +++ b/src/intermediate/inline_babel_call.rs @@ -1,5 +1,5 @@ use super::macros::inoop; -use super::registry::Registry; + use crate::error::CustomError; inoop!(IInlineBabelCall, InlineBabelCall); diff --git a/src/intermediate/inline_source_block.rs b/src/intermediate/inline_source_block.rs index 700f2fd..dd23be8 100644 --- a/src/intermediate/inline_source_block.rs +++ b/src/intermediate/inline_source_block.rs @@ -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(), }) diff --git a/src/intermediate/italic.rs b/src/intermediate/italic.rs index 1c20c55..fed41bd 100644 --- a/src/intermediate/italic.rs +++ b/src/intermediate/italic.rs @@ -1,5 +1,5 @@ use super::macros::inoop; -use super::registry::Registry; + use crate::error::CustomError; inoop!(IItalic, Italic); diff --git a/src/intermediate/keyword.rs b/src/intermediate/keyword.rs index 3f510f3..d282bb4 100644 --- a/src/intermediate/keyword.rs +++ b/src/intermediate/keyword.rs @@ -1,5 +1,5 @@ use super::macros::inoop; -use super::registry::Registry; + use crate::error::CustomError; inoop!(IKeyword, Keyword); diff --git a/src/intermediate/latex_environment.rs b/src/intermediate/latex_environment.rs index 361ae3e..891f570 100644 --- a/src/intermediate/latex_environment.rs +++ b/src/intermediate/latex_environment.rs @@ -1,5 +1,5 @@ use super::macros::inoop; -use super::registry::Registry; + use crate::error::CustomError; inoop!(ILatexEnvironment, LatexEnvironment); diff --git a/src/intermediate/latex_fragment.rs b/src/intermediate/latex_fragment.rs index 89aa832..d76a3a0 100644 --- a/src/intermediate/latex_fragment.rs +++ b/src/intermediate/latex_fragment.rs @@ -1,5 +1,5 @@ use super::macros::inoop; -use super::registry::Registry; + use crate::error::CustomError; inoop!(ILatexFragment, LatexFragment); diff --git a/src/intermediate/line_break.rs b/src/intermediate/line_break.rs index 8436553..a092d54 100644 --- a/src/intermediate/line_break.rs +++ b/src/intermediate/line_break.rs @@ -1,5 +1,5 @@ use super::macros::inoop; -use super::registry::Registry; + use crate::error::CustomError; inoop!(ILineBreak, LineBreak); diff --git a/src/intermediate/macros.rs b/src/intermediate/macros.rs index f7b6236..cdebb49 100644 --- a/src/intermediate/macros.rs +++ b/src/intermediate/macros.rs @@ -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 {}) } diff --git a/src/intermediate/object.rs b/src/intermediate/object.rs index a0b05a2..533651f 100644 --- a/src/intermediate/object.rs +++ b/src/intermediate/object.rs @@ -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; diff --git a/src/intermediate/org_macro.rs b/src/intermediate/org_macro.rs index bae7384..ffc56d3 100644 --- a/src/intermediate/org_macro.rs +++ b/src/intermediate/org_macro.rs @@ -1,5 +1,5 @@ use super::macros::inoop; -use super::registry::Registry; + use crate::error::CustomError; inoop!(IOrgMacro, OrgMacro); diff --git a/src/intermediate/page.rs b/src/intermediate/page.rs index 404852e..74952fa 100644 --- a/src/intermediate/page.rs +++ b/src/intermediate/page.rs @@ -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; diff --git a/src/intermediate/paragraph.rs b/src/intermediate/paragraph.rs index 675f22e..c9cb886 100644 --- a/src/intermediate/paragraph.rs +++ b/src/intermediate/paragraph.rs @@ -1,5 +1,5 @@ use super::macros::intermediate; -use super::registry::Registry; + use super::IObject; use crate::error::CustomError; diff --git a/src/intermediate/plain_link.rs b/src/intermediate/plain_link.rs index 68d0861..0178945 100644 --- a/src/intermediate/plain_link.rs +++ b/src/intermediate/plain_link.rs @@ -1,5 +1,5 @@ use super::macros::inoop; -use super::registry::Registry; + use crate::error::CustomError; inoop!(IPlainLink, PlainLink); diff --git a/src/intermediate/plain_list.rs b/src/intermediate/plain_list.rs index 5a4e62b..a6e09c2 100644 --- a/src/intermediate/plain_list.rs +++ b/src/intermediate/plain_list.rs @@ -1,5 +1,5 @@ use super::macros::intermediate; -use super::registry::Registry; + use super::IPlainListItem; use crate::error::CustomError; diff --git a/src/intermediate/plain_list_item.rs b/src/intermediate/plain_list_item.rs index 8bb03da..eee5947 100644 --- a/src/intermediate/plain_list_item.rs +++ b/src/intermediate/plain_list_item.rs @@ -1,5 +1,5 @@ use super::macros::intermediate; -use super::registry::Registry; + use super::IElement; use super::IObject; use crate::error::CustomError; diff --git a/src/intermediate/plain_text.rs b/src/intermediate/plain_text.rs index 1dceef4..085ae23 100644 --- a/src/intermediate/plain_text.rs +++ b/src/intermediate/plain_text.rs @@ -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(), }) diff --git a/src/intermediate/planning.rs b/src/intermediate/planning.rs index 7de9746..56cee1a 100644 --- a/src/intermediate/planning.rs +++ b/src/intermediate/planning.rs @@ -1,5 +1,5 @@ use super::macros::inoop; -use super::registry::Registry; + use crate::error::CustomError; inoop!(IPlanning, Planning); diff --git a/src/intermediate/property_drawer.rs b/src/intermediate/property_drawer.rs index 9a42001..835cc69 100644 --- a/src/intermediate/property_drawer.rs +++ b/src/intermediate/property_drawer.rs @@ -1,5 +1,5 @@ use super::macros::inoop; -use super::registry::Registry; + use crate::error::CustomError; inoop!(IPropertyDrawer, PropertyDrawer); diff --git a/src/intermediate/quote_block.rs b/src/intermediate/quote_block.rs index 82ad4ed..17c3dd4 100644 --- a/src/intermediate/quote_block.rs +++ b/src/intermediate/quote_block.rs @@ -1,5 +1,5 @@ use super::macros::intermediate; -use super::registry::Registry; + use super::IElement; use crate::error::CustomError; diff --git a/src/intermediate/radio_link.rs b/src/intermediate/radio_link.rs index 6dfea17..f51f0b0 100644 --- a/src/intermediate/radio_link.rs +++ b/src/intermediate/radio_link.rs @@ -1,5 +1,5 @@ use super::macros::inoop; -use super::registry::Registry; + use crate::error::CustomError; inoop!(IRadioLink, RadioLink); diff --git a/src/intermediate/radio_target.rs b/src/intermediate/radio_target.rs index 01b20e9..9c56e2f 100644 --- a/src/intermediate/radio_target.rs +++ b/src/intermediate/radio_target.rs @@ -1,5 +1,5 @@ use super::macros::inoop; -use super::registry::Registry; + use crate::error::CustomError; inoop!(IRadioTarget, RadioTarget); diff --git a/src/intermediate/regular_link.rs b/src/intermediate/regular_link.rs index 2e85bd7..0fcf77c 100644 --- a/src/intermediate/regular_link.rs +++ b/src/intermediate/regular_link.rs @@ -1,5 +1,5 @@ use super::macros::intermediate; -use super::registry::Registry; + use super::IObject; use crate::error::CustomError; diff --git a/src/intermediate/section.rs b/src/intermediate/section.rs index d095620..66d5be3 100644 --- a/src/intermediate/section.rs +++ b/src/intermediate/section.rs @@ -1,5 +1,5 @@ use super::macros::intermediate; -use super::registry::Registry; + use super::IElement; use crate::error::CustomError; diff --git a/src/intermediate/special_block.rs b/src/intermediate/special_block.rs index 2109242..de07572 100644 --- a/src/intermediate/special_block.rs +++ b/src/intermediate/special_block.rs @@ -1,5 +1,5 @@ use super::macros::inoop; -use super::registry::Registry; + use crate::error::CustomError; inoop!(ISpecialBlock, SpecialBlock); diff --git a/src/intermediate/src_block.rs b/src/intermediate/src_block.rs index e780497..05cc9f4 100644 --- a/src/intermediate/src_block.rs +++ b/src/intermediate/src_block.rs @@ -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, } -intermediate!(ISrcBlock, SrcBlock, original, registry, { +intermediate!(ISrcBlock, SrcBlock, original, _registry, { let lines = original .contents .split_inclusive('\n') diff --git a/src/intermediate/statistics_cookie.rs b/src/intermediate/statistics_cookie.rs index ae6ec23..1c6c115 100644 --- a/src/intermediate/statistics_cookie.rs +++ b/src/intermediate/statistics_cookie.rs @@ -1,5 +1,5 @@ use super::macros::inoop; -use super::registry::Registry; + use crate::error::CustomError; inoop!(IStatisticsCookie, StatisticsCookie); diff --git a/src/intermediate/strike_through.rs b/src/intermediate/strike_through.rs index d870835..f924fa0 100644 --- a/src/intermediate/strike_through.rs +++ b/src/intermediate/strike_through.rs @@ -1,5 +1,5 @@ use super::macros::inoop; -use super::registry::Registry; + use crate::error::CustomError; inoop!(IStrikeThrough, StrikeThrough); diff --git a/src/intermediate/subscript.rs b/src/intermediate/subscript.rs index 4ce1f3e..e45c784 100644 --- a/src/intermediate/subscript.rs +++ b/src/intermediate/subscript.rs @@ -1,5 +1,5 @@ use super::macros::inoop; -use super::registry::Registry; + use crate::error::CustomError; inoop!(ISubscript, Subscript); diff --git a/src/intermediate/superscript.rs b/src/intermediate/superscript.rs index 9449de3..80501ab 100644 --- a/src/intermediate/superscript.rs +++ b/src/intermediate/superscript.rs @@ -1,5 +1,5 @@ use super::macros::inoop; -use super::registry::Registry; + use crate::error::CustomError; inoop!(ISuperscript, Superscript); diff --git a/src/intermediate/table.rs b/src/intermediate/table.rs index c4cb36b..39ab0df 100644 --- a/src/intermediate/table.rs +++ b/src/intermediate/table.rs @@ -1,5 +1,5 @@ use super::macros::inoop; -use super::registry::Registry; + use crate::error::CustomError; inoop!(ITable, Table); diff --git a/src/intermediate/target.rs b/src/intermediate/target.rs index c27eccc..ea1f3ce 100644 --- a/src/intermediate/target.rs +++ b/src/intermediate/target.rs @@ -1,5 +1,5 @@ use super::macros::intermediate; -use super::registry::Registry; + use crate::error::CustomError; #[derive(Debug, Clone)] diff --git a/src/intermediate/timestamp.rs b/src/intermediate/timestamp.rs index d2a2692..3ab13ac 100644 --- a/src/intermediate/timestamp.rs +++ b/src/intermediate/timestamp.rs @@ -1,6 +1,6 @@ use crate::error::CustomError; use super::macros::inoop; -use super::registry::Registry; + inoop!(ITimestamp, Timestamp); diff --git a/src/intermediate/underline.rs b/src/intermediate/underline.rs index 2e60589..9e2f569 100644 --- a/src/intermediate/underline.rs +++ b/src/intermediate/underline.rs @@ -1,6 +1,6 @@ use crate::error::CustomError; use super::macros::inoop; -use super::registry::Registry; + inoop!(IUnderline, Underline); diff --git a/src/intermediate/verbatim.rs b/src/intermediate/verbatim.rs index 7aecb4e..8e1e05e 100644 --- a/src/intermediate/verbatim.rs +++ b/src/intermediate/verbatim.rs @@ -1,6 +1,6 @@ use crate::error::CustomError; use super::macros::inoop; -use super::registry::Registry; + inoop!(IVerbatim, Verbatim); diff --git a/src/intermediate/verse_block.rs b/src/intermediate/verse_block.rs index 6a53749..2013ead 100644 --- a/src/intermediate/verse_block.rs +++ b/src/intermediate/verse_block.rs @@ -1,6 +1,6 @@ use crate::error::CustomError; use super::macros::inoop; -use super::registry::Registry; + inoop!(IVerseBlock, VerseBlock);