Skip to content

Commit

Permalink
rustfmt
Browse files Browse the repository at this point in the history
  • Loading branch information
raphlinus committed Oct 26, 2023
1 parent 834782a commit 0240754
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
6 changes: 5 additions & 1 deletion crates/xilem_svg/src/common_attrs.rs
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,11 @@ pub fn fill<T, V>(child: V, brush: impl Into<Brush>) -> Fill<T, V> {
}
}

pub fn stroke<T, V>(child: V, brush: impl Into<Brush>, style: peniko::kurbo::Stroke) -> Stroke<T, V> {
pub fn stroke<T, V>(
child: V,
brush: impl Into<Brush>,
style: peniko::kurbo::Stroke,
) -> Stroke<T, V> {
Stroke {
child,
brush: brush.into(),
Expand Down
3 changes: 2 additions & 1 deletion crates/xilem_svg/src/view_ext.rs
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,9 @@ use peniko::Brush;
use crate::{
class::Class,
clicked::Clicked,
common_attrs::{Fill, Stroke},
pointer::{Pointer, PointerMsg},
view::View, common_attrs::{Fill, Stroke},
view::View,
};

pub trait ViewExt<T>: View<T> + Sized {
Expand Down

0 comments on commit 0240754

Please sign in to comment.