Fix unused imports (#425)
This commit is contained in:
parent
6e50e675b6
commit
9bba7d6390
4 changed files with 2 additions and 10 deletions
|
@ -1,4 +1,4 @@
|
||||||
use comrak::{self, nodes::AstNode, Arena};
|
use comrak::{nodes::AstNode, Arena};
|
||||||
use docs::{
|
use docs::{
|
||||||
page::{Page, COMRAK_OPTIONS},
|
page::{Page, COMRAK_OPTIONS},
|
||||||
string_writer::StringWriter,
|
string_writer::StringWriter,
|
||||||
|
|
|
@ -1,5 +1,4 @@
|
||||||
use comrak::{
|
use comrak::{
|
||||||
self,
|
|
||||||
nodes::{AstNode, NodeCodeBlock, NodeHeading, NodeHtmlBlock, NodeLink, NodeValue},
|
nodes::{AstNode, NodeCodeBlock, NodeHeading, NodeHtmlBlock, NodeLink, NodeValue},
|
||||||
Arena,
|
Arena,
|
||||||
};
|
};
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
use maud::{self, html};
|
use maud::html;
|
||||||
|
|
||||||
#[test]
|
#[test]
|
||||||
fn issue_13() {
|
fn issue_13() {
|
||||||
|
|
|
@ -2,10 +2,6 @@
|
||||||
// !!!!!!!! PLEASE KEEP THIS IN SYNC WITH `maud/src/escape.rs` !!!!!!!!!
|
// !!!!!!!! PLEASE KEEP THIS IN SYNC WITH `maud/src/escape.rs` !!!!!!!!!
|
||||||
// !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
|
// !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
|
||||||
|
|
||||||
extern crate alloc;
|
|
||||||
|
|
||||||
use alloc::string::String;
|
|
||||||
|
|
||||||
pub fn escape_to_string(input: &str, output: &mut String) {
|
pub fn escape_to_string(input: &str, output: &mut String) {
|
||||||
for b in input.bytes() {
|
for b in input.bytes() {
|
||||||
match b {
|
match b {
|
||||||
|
@ -20,10 +16,7 @@ pub fn escape_to_string(input: &str, output: &mut String) {
|
||||||
|
|
||||||
#[cfg(test)]
|
#[cfg(test)]
|
||||||
mod test {
|
mod test {
|
||||||
extern crate alloc;
|
|
||||||
|
|
||||||
use super::escape_to_string;
|
use super::escape_to_string;
|
||||||
use alloc::string::String;
|
|
||||||
|
|
||||||
#[test]
|
#[test]
|
||||||
fn it_works() {
|
fn it_works() {
|
||||||
|
|
Loading…
Add table
Reference in a new issue