expose-ids: pass the correct field for global ID (#3669)

This commit is contained in:
François
2023-04-12 18:45:31 +02:00
committed by GitHub
parent ee175f909c
commit d781bb7443

View File

@@ -58,7 +58,7 @@ impl<T> From<Identified<T>> for ObjectId {
// API.
core::num::NonZeroU64::new(1).unwrap(),
#[cfg(feature = "expose-ids")]
identified.1,
identified.0,
)
}
}
@@ -71,7 +71,7 @@ impl<T> From<(Identified<T>, Sendable<T>)> for ObjectId {
// API.
core::num::NonZeroU64::new(1).unwrap(),
#[cfg(feature = "expose-ids")]
id.1,
id.0,
)
}
}