Chris Morgan
›
Git
›
anymap
› commitdiff
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
patch
|
inline
| side by side (from parent 1:
2d5be08
)
commit
grep
author
committer
pickaxe
?
search:
re
Implement From, not Into
author
Chris Morgan
<me@chrismorgan.info>
Tue, 25 Jan 2022 08:21:15 +0000
committer
Chris Morgan
<me@chrismorgan.info>
Tue, 25 Jan 2022 13:16:15 +0000
CHANGELOG.md
patch
|
blob
|
history
src/lib.rs
patch
|
blob
|
history
diff --git
a/CHANGELOG.md
b/CHANGELOG.md
index 0841cfa24445291dfec65211a6ca17dc3cc8ed2b..bb19bc9eb9eefe88f3095a89a62c95815d98ccaf 100644
(file)
--- a/
CHANGELOG.md
+++ b/
CHANGELOG.md
@@
-21,6
+21,9
@@
- Implement `Default` on `Map` (not just on `RawMap`)
- Implement `Default` on `Map` (not just on `RawMap`)
+- The implementation of `Into<RawMap<A>>` for `Map<A>` has been
+ replaced with the more general `From<Map<A>>` for `RawMap<A>`.
+
- Worked around the spurious `where_clauses_object_safety` future-compatibility lint that has been raised since mid-2018.
If you put `#![allow(where_clauses_object_safety)]` on your binary crates for this reason, you can remove it.
- Worked around the spurious `where_clauses_object_safety` future-compatibility lint that has been raised since mid-2018.
If you put `#![allow(where_clauses_object_safety)]` on your binary crates for this reason, you can remove it.
diff --git
a/src/lib.rs
b/src/lib.rs
index 31b271e83ce89110d8216527de55b2c7807c6ea4..1ad840b4b3f4c53d7012f7ea584c930e9c2f3ee3 100644
(file)
--- a/
src/lib.rs
+++ b/
src/lib.rs
@@
-236,10
+236,10
@@
impl<A: ?Sized + UncheckedAnyExt> AsMut<RawMap<A>> for Map<A> {
}
}
}
}
-impl<A: ?Sized + UncheckedAnyExt>
Into<RawMap<A>> for
Map<A> {
+impl<A: ?Sized + UncheckedAnyExt>
From<Map<A>> for Raw
Map<A> {
#[inline]
#[inline]
- fn
into(self
) -> RawMap<A> {
-
self
.raw
+ fn
from(map: Map<A>
) -> RawMap<A> {
+
map
.raw
}
}
}
}