From 39e4de9e2b0351527c01811f922467ce62018514 Mon Sep 17 00:00:00 2001 From: Zibi Braniecki Date: Tue, 23 Jul 2019 01:26:03 -0700 Subject: [PATCH] annotate-snippets 0.6.1 --- CHANGELOG.md | 4 ++++ Cargo.toml | 7 +++---- README.md | 2 -- examples/expected_type.rs | 2 -- examples/footer.rs | 2 -- examples/format.rs | 2 -- examples/multislice.rs | 2 -- src/stylesheets/color.rs | 4 ++-- tests/diff/mod.rs | 7 ++----- tests/dl_from_snippet.rs | 2 -- tests/fixtures.rs | 7 +------ tests/formatter.rs | 2 -- tests/snippet/mod.rs | 7 ++----- 13 files changed, 14 insertions(+), 36 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index ed51fed..a125e8f 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -3,6 +3,10 @@ ## Unreleased - … + +## annotate-snippets 0.6.1 (July 23, 2019) + + - Fix too many anonymized line numbers (#5) ## annotate-snippets 0.6.0 (June 26, 2019) diff --git a/Cargo.toml b/Cargo.toml index 05c073e..35c8aae 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "annotate-snippets" -version = "0.6.0" +version = "0.6.1" edition = "2018" authors = ["Zibi Braniecki "] description = "Library for building code annotations" @@ -21,10 +21,9 @@ ansi_term = { version = "0.11.0", optional = true } [dev-dependencies] glob = "^0.3" serde_yaml = "^0.8" -serde = "^1.0" -serde_derive = "^1.0" +serde = { version = "^1.0", features = ["derive"] } difference = "^2.0" -ansi_term = "^0.11" +ansi_term = "^0.12" [features] default = [] diff --git a/README.md b/README.md index eb9a6e9..a690007 100644 --- a/README.md +++ b/README.md @@ -34,8 +34,6 @@ Usage ----- ```rust -extern crate annotate_snippets; - use annotate_snippets::snippet; fn main() { diff --git a/examples/expected_type.rs b/examples/expected_type.rs index 6ad3c36..20cda66 100644 --- a/examples/expected_type.rs +++ b/examples/expected_type.rs @@ -1,5 +1,3 @@ -extern crate annotate_snippets; - use annotate_snippets::display_list::DisplayList; use annotate_snippets::formatter::DisplayListFormatter; use annotate_snippets::snippet::{Annotation, AnnotationType, Slice, Snippet, SourceAnnotation}; diff --git a/examples/footer.rs b/examples/footer.rs index 1814be1..1b03910 100644 --- a/examples/footer.rs +++ b/examples/footer.rs @@ -1,5 +1,3 @@ -extern crate annotate_snippets; - use annotate_snippets::display_list::DisplayList; use annotate_snippets::formatter::DisplayListFormatter; use annotate_snippets::snippet::{Annotation, AnnotationType, Slice, Snippet, SourceAnnotation}; diff --git a/examples/format.rs b/examples/format.rs index d6a77ae..7e41802 100644 --- a/examples/format.rs +++ b/examples/format.rs @@ -1,5 +1,3 @@ -extern crate annotate_snippets; - use annotate_snippets::display_list::DisplayList; use annotate_snippets::formatter::DisplayListFormatter; use annotate_snippets::snippet::{Annotation, AnnotationType, Slice, Snippet, SourceAnnotation}; diff --git a/examples/multislice.rs b/examples/multislice.rs index 47981b7..af1cb15 100644 --- a/examples/multislice.rs +++ b/examples/multislice.rs @@ -1,5 +1,3 @@ -extern crate annotate_snippets; - use annotate_snippets::display_list::DisplayList; use annotate_snippets::formatter::DisplayListFormatter; use annotate_snippets::snippet::{Annotation, AnnotationType, Slice, Snippet}; diff --git a/src/stylesheets/color.rs b/src/stylesheets/color.rs index b2b5762..f0a5d9c 100644 --- a/src/stylesheets/color.rs +++ b/src/stylesheets/color.rs @@ -12,7 +12,7 @@ impl Style for AnsiTermStyleWrapper { format!("{}", self.style.paint(text)) } - fn bold(&self) -> Box