Formatting...

This commit is contained in:
2021-08-12 15:48:02 +02:00
committed by dietrich
parent 26142084f6
commit 50da81889e
8 changed files with 44 additions and 49 deletions
+2 -2
View File
@@ -95,13 +95,13 @@ pub enum Loadable<T> {
Loading,
}
impl<T> Deref for Loadable<T>{
impl<T> Deref for Loadable<T> {
type Target = Option<T>;
fn deref(&self) -> &Self::Target {
match self {
Loadable::Data(t) => t,
Loadable::Loading => &None
Loadable::Loading => &None,
}
}
}