Skip to content

Commit 600385c

Browse files
committed
[Rust] Misc formatting
1 parent 46ba90a commit 600385c

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

rust/src/disassembly.rs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1028,7 +1028,9 @@ impl From<InstructionTextTokenContext> for BNInstructionTextTokenContext {
10281028
InstructionTextTokenContext::Collapsed => Self::ContentCollapsedContext,
10291029
InstructionTextTokenContext::Expanded => Self::ContentExpandedContext,
10301030
InstructionTextTokenContext::CollapsiblePadding => Self::ContentCollapsiblePadding,
1031-
InstructionTextTokenContext::DerivedStringReference => Self::DerivedStringReferenceTokenContext,
1031+
InstructionTextTokenContext::DerivedStringReference => {
1032+
Self::DerivedStringReferenceTokenContext
1033+
}
10321034
}
10331035
}
10341036
}

rust/src/types.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1668,7 +1668,7 @@ impl Structure {
16681668
///
16691669
/// We must pass a [`TypeContainer`] here so that we can resolve base structure members, as they
16701670
/// are treated as members through this function. Typically, you get the [`TypeContainer`]
1671-
/// through the binary view with [`BinaryView::get_type_container`].
1671+
/// through the binary view with [`BinaryViewExt::get_type_container`].
16721672
pub fn members_at_offset(
16731673
&self,
16741674
container: &TypeContainer,
@@ -1701,7 +1701,7 @@ impl Structure {
17011701
/// Returns the list of all structure members, including inherited ones.
17021702
///
17031703
/// Because we must traverse through base structures, we have to provide the [`TypeContainer`];
1704-
/// in most cases it is ok to provide the binary views container via [`BinaryView::type_container`].
1704+
/// in most cases it is ok to provide the binary views container via [`BinaryViewExt::type_container`].
17051705
pub fn members_including_inherited(
17061706
&self,
17071707
container: &TypeContainer,

0 commit comments

Comments
 (0)