Fix infinite recursion in WindowId conversion methods

This commit is contained in:
Shinichi Tanaka 2022-07-06 02:09:40 +09:00 committed by GitHub
parent d78a870e66
commit 4b10993970
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -85,13 +85,13 @@ impl WindowId {
impl From<WindowId> for u64 {
fn from(window_id: WindowId) -> Self {
window_id.into()
window_id.0.into()
}
}
impl From<u64> for WindowId {
fn from(raw_id: u64) -> Self {
raw_id.into()
Self(raw_id.into())
}
}