Skip to content

Commit

Permalink
Ver 2 (#81)
Browse files Browse the repository at this point in the history
* fmt

* update README version reference
  • Loading branch information
kurtlawrence authored Jul 14, 2020
1 parent 25f29cc commit 5d828f2
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 7 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ Add this in your `Cargo.toml`:

```toml
[dependencies]
colored = "1.9"
colored = "2"
```

and add this to your `lib.rs` or `main.rs`:
Expand Down
8 changes: 2 additions & 6 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -40,11 +40,7 @@ mod style;

pub use color::*;

use std::convert::From;
use std::fmt;
use std::ops::Deref;
use std::string::String;
use std::borrow::Cow;
use std::{borrow::Cow, fmt, ops::Deref};

pub use style::{Style, Styles};

Expand Down Expand Up @@ -423,7 +419,7 @@ impl ColoredString {
.map(|(idx, _)| idx)
.collect();
if matches.is_empty() {
return self.input.as_str().into()
return self.input.as_str().into();
}

let mut input = self.input.clone();
Expand Down

0 comments on commit 5d828f2

Please sign in to comment.