0
0
mirror of https://github.com/signalapp/libsignal.git synced 2024-09-20 12:02:18 +02:00

bridge: Tweak a comment in TransformHelper to be more accurate

This commit is contained in:
Jordan Rose 2021-10-19 15:44:59 -07:00
parent 75f0a90a96
commit 949f25e980

View File

@ -18,7 +18,8 @@ impl<T> TransformHelper<T> {
/// Extracts the value from the TransformHelper and transforms it as requested.
///
/// This isn't an actual implementation of Into (or From)
/// because `U` could be anything, including types outside this crate.
/// because that would conflict with the identity implementation
/// `TransformHelper<T>: From<TransformHelper<T>>`.
pub(crate) fn into<U: From<T>>(self) -> U {
self.0.into()
}