Create iced_widget subcrate and re-organize the whole codebase
This commit is contained in:
parent
c54409d171
commit
3a0d34c024
209 changed files with 1959 additions and 2183 deletions
|
|
@ -1,4 +1,5 @@
|
|||
use iced_futures::futures;
|
||||
use crate::futures::futures;
|
||||
use crate::graphics;
|
||||
|
||||
/// An error that occurred while running an application.
|
||||
#[derive(Debug, thiserror::Error)]
|
||||
|
|
@ -13,10 +14,10 @@ pub enum Error {
|
|||
|
||||
/// The application graphics context could not be created.
|
||||
#[error("the application graphics context could not be created")]
|
||||
GraphicsCreationFailed(iced_graphics::Error),
|
||||
GraphicsCreationFailed(graphics::Error),
|
||||
}
|
||||
|
||||
impl From<iced_graphics::Error> for Error {
|
||||
impl From<graphics::Error> for Error {
|
||||
fn from(error: iced_graphics::Error) -> Error {
|
||||
Error::GraphicsCreationFailed(error)
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue