Skip to content

Commit 4a96a90

Browse files
authored
Fix clippy warnings for Rust 1.86 (#1297)
Fixed over-indented list items which may be interpreted by MarkDown processors as code blocks. Removed an unnecessary struct pattern in the `matches!` macro.
1 parent 302f611 commit 4a96a90

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
//! * GC components:
2121
//! * [Allocators](util/alloc/allocator/trait.Allocator.html): handlers of allocation requests which allocate objects to the bound space.
2222
//! * [Policies](policy/space/trait.Space.html): definitions of semantics and behaviors for memory regions.
23-
//! Each space is an instance of a policy, and takes up a unique proportion of the heap.
23+
//! Each space is an instance of a policy, and takes up a unique proportion of the heap.
2424
//! * [Work packets](scheduler/work/trait.GCWork.html): units of GC work scheduled by the MMTk's scheduler.
2525
//! * [GC plans](plan/global/trait.Plan.html): GC algorithms composed from components.
2626
//! * [Heap implementations](util/heap/index.html): the underlying implementations of memory resources that support spaces.

src/mmtk.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -568,7 +568,7 @@ impl<VM: VMBinding> MMTK<VM> {
568568
/// Arguments:
569569
/// * `out`: the place to print the VM maps.
570570
/// * `space_name`: If `None`, print all spaces;
571-
/// if `Some(n)`, only print the space whose name is `n`.
571+
/// if `Some(n)`, only print the space whose name is `n`.
572572
pub fn debug_print_vm_maps(
573573
&self,
574574
out: &mut impl std::fmt::Write,

src/util/heap/vmrequest.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ pub enum VMRequest {
1212

1313
impl VMRequest {
1414
pub fn is_discontiguous(&self) -> bool {
15-
matches!(self, VMRequest::Discontiguous { .. })
15+
matches!(self, VMRequest::Discontiguous)
1616
}
1717

1818
pub fn common64bit(top: bool) -> Self {

src/vm/active_plan.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ pub trait ActivePlan<VM: VMBinding> {
4848
///
4949
/// Arguments:
5050
/// * `queue`: The object queue. If an object is encountered for the first time in this GC, we expect the implementation to call `queue.enqueue()`
51-
/// for the object. If the object is moved during the tracing, the new object reference (after copying) should be enqueued instead.
51+
/// for the object. If the object is moved during the tracing, the new object reference (after copying) should be enqueued instead.
5252
/// * `object`: The object to trace.
5353
/// * `worker`: The GC worker that is doing this tracing. This is used to copy object (see [`crate::vm::ObjectModel::copy`])
5454
fn vm_trace_object<Q: ObjectQueue>(

0 commit comments

Comments
 (0)