Add From<String> for image::Handle in iced_web
This commit is contained in:
parent
9df3fb13c7
commit
ad13b466d2
1 changed files with 6 additions and 0 deletions
|
|
@ -140,6 +140,12 @@ impl Handle {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
impl From<String> for Handle {
|
||||||
|
fn from(path: String) -> Handle {
|
||||||
|
Handle::from_path(path)
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
impl From<&str> for Handle {
|
impl From<&str> for Handle {
|
||||||
fn from(path: &str) -> Handle {
|
fn from(path: &str) -> Handle {
|
||||||
Handle::from_path(path)
|
Handle::from_path(path)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue