Skip to content

Commit

Permalink
Fix unused import warnings.
Browse files Browse the repository at this point in the history
  • Loading branch information
emmiegit committed Jul 16, 2024
1 parent d7257b6 commit 2d0083b
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/parsing/check_step.rs
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@
*/

use super::{ExtractedToken, ParseError, Parser, Token};
use crate::layout::Layout;

/// Helper function to assert that the current token matches, then step.
///
Expand Down Expand Up @@ -47,6 +46,7 @@ pub fn check_step<'r, 't>(
#[should_panic]
fn check_step_fail() {
use crate::data::PageInfo;
use crate::layout::Layout;
use crate::settings::{WikitextMode, WikitextSettings};

let page_info = PageInfo::dummy();
Expand Down
2 changes: 1 addition & 1 deletion src/parsing/parser.rs
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@ use super::prelude::*;
use super::rule::Rule;
use super::RULE_PAGE;
use crate::data::PageInfo;
use crate::layout::Layout;
use crate::render::text::TextRender;
use crate::tokenizer::Tokenization;
use crate::tree::{
Expand Down Expand Up @@ -584,6 +583,7 @@ fn make_shared_vec<T>() -> Rc<RefCell<Vec<T>>> {

#[test]
fn parser_newline_flag() {
use crate::layout::Layout;
use crate::settings::WikitextMode;

let page_info = PageInfo::dummy();
Expand Down
2 changes: 1 addition & 1 deletion src/parsing/parser_wrap.rs
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@
*/

use super::Parser;
use crate::layout::Layout;
use crate::tree::AcceptsPartial;
use std::ops::{Deref, DerefMut};

Expand Down Expand Up @@ -66,6 +65,7 @@ impl Drop for ParserWrap<'_, '_, '_> {
#[test]
fn wrap() {
use crate::data::PageInfo;
use crate::layout::Layout;
use crate::settings::{WikitextMode, WikitextSettings};

let page_info = PageInfo::dummy();
Expand Down
2 changes: 1 addition & 1 deletion src/render/null.rs
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@
//! and produce a unit value as output.

use super::prelude::*;
use crate::layout::Layout;

#[derive(Debug)]
pub struct NullRender;
Expand All @@ -44,6 +43,7 @@ impl Render for NullRender {

#[test]
fn null() {
use crate::layout::Layout;
use crate::tree::BibliographyList;

let page_info = PageInfo::dummy();
Expand Down

0 comments on commit 2d0083b

Please sign in to comment.