Skip to content

Commit

Permalink
Drop extern crate in version test and README example
Browse files Browse the repository at this point in the history
  • Loading branch information
lnicola committed Jul 25, 2019
1 parent 403fb40 commit be12421
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
7 changes: 4 additions & 3 deletions README.md
Expand Up @@ -42,14 +42,15 @@ Using [pulldown-cmark] together with Ammonia for a friendly user-facing comment
site.

```rust
extern crate pulldown_cmark;
extern crate ammonia;
use pulldown_cmark::{push_html, Parser};
use ammonia::clean;
use pulldown_cmark::{push_html, Parser};

let text = "[a link](http://www.notriddle.com/)";

let mut md_parse = Parser::new_ext(text, OPTION_ENABLE_TABLES);
let mut unsafe_html = String::new();
push_html(&mut unsafe_html, md_parse);

let safe_html = clean(&*unsafe_html);
assert_eq!(safe_html, "<a href=\"http://www.notriddle.com/\">a link</a>");
```
Expand Down
3 changes: 1 addition & 2 deletions tests/version-numbers.rs
@@ -1,5 +1,4 @@
#[macro_use]
extern crate version_sync;
use version_sync::assert_markdown_deps_updated;

#[test]
fn test_readme_deps() {
Expand Down

0 comments on commit be12421

Please sign in to comment.