lints: A bunch of extra style lint fixes (#36568)
- **lints: Fix 'doc_lazy_continuation'** - **lints: Fix 'doc_overindented_list_items'** - **inherent_to_string and io_other_error** - **Some more lint fixes** - **lints: enable bool_assert_comparison, match_like_matches_macro and wrong_self_convention** Release Notes: - N/A
This commit is contained in:
@@ -904,7 +904,7 @@ impl BreakpointState {
|
||||
}
|
||||
|
||||
#[inline]
|
||||
pub fn to_int(&self) -> i32 {
|
||||
pub fn to_int(self) -> i32 {
|
||||
match self {
|
||||
BreakpointState::Enabled => 0,
|
||||
BreakpointState::Disabled => 1,
|
||||
|
||||
@@ -3,6 +3,7 @@
|
||||
//! Each byte in memory can either be mapped or unmapped. We try to mimic that twofold:
|
||||
//! - We assume that the memory is divided into pages of a fixed size.
|
||||
//! - We assume that each page can be either mapped or unmapped.
|
||||
//!
|
||||
//! These two assumptions drive the shape of the memory representation.
|
||||
//! In particular, we want the unmapped pages to be represented without allocating any memory, as *most*
|
||||
//! of the memory in a program space is usually unmapped.
|
||||
@@ -165,8 +166,8 @@ impl Memory {
|
||||
/// - If it succeeds/fails wholesale, cool; we have no unknown memory regions in this page.
|
||||
/// - If it succeeds partially, we know # of mapped bytes.
|
||||
/// We might also know the # of unmapped bytes.
|
||||
/// However, we're still unsure about what's *after* the unreadable region.
|
||||
///
|
||||
/// However, we're still unsure about what's *after* the unreadable region.
|
||||
/// This is where this builder comes in. It lets us track the state of figuring out contents of a single page.
|
||||
pub(super) struct MemoryPageBuilder {
|
||||
chunks: MappedPageContents,
|
||||
|
||||
Reference in New Issue
Block a user