Skip to content
Closed
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Fix clippy errors.
  • Loading branch information
xStrom committed May 22, 2020
commit 4a49689aeaa2420cfc3266357ae4110c5dd178d4
1 change: 1 addition & 0 deletions druid/examples/image.rs
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ pub fn main() {

#[cfg(feature = "image")]
pub fn main() {
use druid::widget::prelude::*;
use druid::{
widget::{FillStrat, Flex, Image, ImageData, WidgetExt},
AppLauncher, Color, Widget, WindowDesc,
Expand Down
1 change: 1 addition & 0 deletions druid/examples/svg.rs
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ pub fn main() {
pub fn main() {
use log::error;

use druid::widget::prelude::*;
use druid::{
widget::{FillStrat, Flex, Svg, SvgData, WidgetExt},
AppLauncher, LocalizedString, Widget, WindowDesc,
Expand Down
1 change: 1 addition & 0 deletions druid/src/widget/image.rs
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ use std::convert::AsRef;
use std::error::Error;
use std::path::Path;

use crate::widget::prelude::*;
use crate::{
piet::{ImageFormat, InterpolationMode},
widget::common::FillStrat,
Expand Down
1 change: 1 addition & 0 deletions druid/src/widget/svg.rs
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ use std::sync::Arc;

use log::error;

use crate::widget::prelude::*;
use crate::{
kurbo::BezPath, widget::common::FillStrat, Affine, BoxConstraints, Color, Data, Env, Event,
EventCtx, LayoutCtx, LifeCycle, LifeCycleCtx, PaintCtx, Rect, RenderContext, Size, UpdateCtx,
Expand Down