fix(ironrdp-error): fix build with alloc feature (#514)

This commit is contained in:
Vladyslav Nikonov 2024-08-01 11:43:54 +03:00 committed by GitHub
parent 20e60bc415
commit 5406c286f4
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -48,7 +48,7 @@ impl<Kind> Error<Kind> {
#[cfg(feature = "alloc")]
{
let mut this = self;
this.source = Some(Box::new(source));
this.source = Some(alloc::boxed::Box::new(source));
this
}