Fix unused imports ()

This commit is contained in:
Chris Wong 2024-03-11 00:43:23 +11:00 committed by GitHub
parent 6e50e675b6
commit 9bba7d6390
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
4 changed files with 2 additions and 10 deletions
docs/src/bin
maud/tests
maud_macros/src

View file

@ -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,

View file

@ -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,
}; };

View file

@ -1,4 +1,4 @@
use maud::{self, html}; use maud::html;
#[test] #[test]
fn issue_13() { fn issue_13() {

View file

@ -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() {