Skip to content

Commit

Permalink
Fix unused import.
Browse files Browse the repository at this point in the history
  • Loading branch information
futursolo committed Sep 15, 2021
1 parent 30d0ec8 commit 832751d
Show file tree
Hide file tree
Showing 5 changed files with 12 additions and 8 deletions.
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
# Changelog

## v0.9.1

### Other Changes:
- Removed an unused import.

## v0.9

### Breaking Changes:
Expand Down
2 changes: 1 addition & 1 deletion packages/stylist-core/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "stylist-core"
version = "0.9.0"
version = "0.9.1"
license = "MIT"
repository = "https://github.com/futursolo/stylist-rs"
authors = [
Expand Down
4 changes: 2 additions & 2 deletions packages/stylist-macros/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "stylist-macros"
version = "0.9.0"
version = "0.9.1"
edition = "2018"
license = "MIT"
repository = "https://github.com/futursolo/stylist-rs"
Expand All @@ -24,7 +24,7 @@ resolver = "2"
proc-macro = true

[dependencies]
stylist-core = { path = "../stylist-core", version = "0.9.0", features = ["parser"] }
stylist-core = { path = "../stylist-core", version = "0.9.1", features = ["parser"] }

litrs = "0.2.3"
proc-macro-error = "1.0.4"
Expand Down
6 changes: 3 additions & 3 deletions packages/stylist/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "stylist"
version = "0.9.0"
version = "0.9.1"
license = "MIT"
repository = "https://github.com/futursolo/stylist-rs"
authors = [
Expand All @@ -24,8 +24,8 @@ resolver = "2"
crate-type = ["cdylib", "rlib"]

[dependencies]
stylist-core = { path = "../stylist-core", version = "0.9.0" }
stylist-macros = { path = "../stylist-macros", version = "0.9.0", optional = true }
stylist-core = { path = "../stylist-core", version = "0.9.1" }
stylist-macros = { path = "../stylist-macros", version = "0.9.1", optional = true }

once_cell = "1.8.0"
rand = { version = "0.8.4", optional = true }
Expand Down
3 changes: 1 addition & 2 deletions packages/stylist/src/style_src.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,6 @@ use std::borrow::Cow;
#[cfg(not(feature = "parser"))]
use std::marker::PhantomData;

use stylist_core::ResultDisplay;

use crate::ast::Sheet;
use crate::Result;
#[cfg(feature = "yew_integration")]
Expand Down Expand Up @@ -62,6 +60,7 @@ impl StyleSource<'_> {

#[cfg(feature = "yew_integration")]
pub(crate) fn to_style(&self) -> Style {
use stylist_core::ResultDisplay;
Style::new(self.clone()).expect_display("Failed to create style")
}
}
Expand Down

0 comments on commit 832751d

Please sign in to comment.