Skip to content

Commit

Permalink
uhyve_interface: hypercall::port -> don't take ownership of self
Browse files Browse the repository at this point in the history
  • Loading branch information
jounathaen committed Nov 25, 2024
1 parent 90eb85b commit 049ceaa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion uhyve-interface/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@ pub enum Hypercall<'a> {
impl<'a> Hypercall<'a> {
// TODO: Remove this in the next major version
/// Get a hypercall's port address.
pub fn port(self) -> u16 {
pub fn port(&self) -> u16 {
HypercallAddress::from(self) as u16
}
}
Expand Down

0 comments on commit 049ceaa

Please sign in to comment.