refactor: remove extra .into()
This commit is contained in:
parent
4333248ecc
commit
7fb5173583
1 changed files with 1 additions and 1 deletions
|
|
@ -100,7 +100,7 @@ impl State {
|
||||||
match message {
|
match message {
|
||||||
Message::ImagePicked(result) => {
|
Message::ImagePicked(result) => {
|
||||||
match result.and_then(|path| self.load_image(path).map_err(Cow::from)) {
|
match result.and_then(|path| self.load_image(path).map_err(Cow::from)) {
|
||||||
Err(e) => self.error = Some(e.into()),
|
Err(e) => self.error = Some(e),
|
||||||
Ok(task) => {
|
Ok(task) => {
|
||||||
self.error = None;
|
self.error = None;
|
||||||
return task;
|
return task;
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue