diff --git a/AdvLoggerPkg/Crates/RustAdvancedLoggerDxe/src/lib.rs b/AdvLoggerPkg/Crates/RustAdvancedLoggerDxe/src/lib.rs index 94c703ec18..f127f94b15 100644 --- a/AdvLoggerPkg/Crates/RustAdvancedLoggerDxe/src/lib.rs +++ b/AdvLoggerPkg/Crates/RustAdvancedLoggerDxe/src/lib.rs @@ -71,14 +71,6 @@ struct AdvancedLoggerProtocolInterface { write_log: AdvancedLoggerWriteProtocol, } -impl Deref for AdvancedLoggerProtocol { - type Target = efi::Guid; - - fn deref(&self) -> &Self::Target { - self.protocol_guid() - } -} - struct AdvancedLoggerProtocol; unsafe impl Protocol for AdvancedLoggerProtocol { @@ -88,6 +80,14 @@ unsafe impl Protocol for AdvancedLoggerProtocol { } } +impl Deref for AdvancedLoggerProtocol { + type Target = efi::Guid; + + fn deref(&self) -> &Self::Target { + self.protocol_guid() + } +} + // Private un-synchronized AdvancedLogger wrapper. Provides implementation of fmt::Write for AdvancedLogger. #[derive(Debug)] struct AdvancedLogger {