make target an associated type
This commit is contained in:
1 parent
ef101dd876
commit
1af8f56e89
11 files changed
+194
-152
No files matched your search
@@ -92,7 +92,7 @@ impl AnyStorage for UnsyncStorage {
|
||||
type Ref<R: ?Sized + 'static> = GenerationalRef<Ref<'static, R>>;
|
||||
type Mut<W: ?Sized + 'static> = GenerationalRefMut<RefMut<'static, W>>;
|
||||
|
||||
fn try_map<I, U: ?Sized + 'static>(
|
||||
fn try_map<I: ?Sized, U: ?Sized + 'static>(
|
||||
_self: Self::Ref<I>,
|
||||
f: impl FnOnce(&I) -> Option<&U>,
|
||||
) -> Option<Self::Ref<U>> {
|
||||
|
||||
Reference in new issue
Block a user