Skip to content

Commit c084265

Browse files
diliopmeta-codesync[bot]
authored andcommitted
fix clippy lints & buck2 OSS CI errors
Summary: Fix existing 1.90.0 and new 1.91.1 clippy lints via: ``` buck2 run fbcode//common/rust/tools/rustfix2:rustfix -- --clippy --target fbcode//common/rust/... --target fbcode//buck2/allocative/... --target fbcode//buck2/app/... --target fbcode//buck2/buck2_tpx_cli/... --target fbcode//buck2/dice/... --target fbcode//buck2/dice_replay/... --target fbcode//buck2/facebook/... --target fbcode//buck2/gazebo/... --target fbcode//buck2/host_sharing/... --target fbcode//buck2/integrations/... --target fbcode//buck2/remote_execution/... --target fbcode//buck2/shed/... --target fbcode//buck2/starlark-rust/... --target fbcode//buck2/superconsole/... --target fbcode//remote_execution/... --target fbcode//target_determinator/... ``` plus OSS errors from `fbcode/buck2/scripts/ci.sh` Reviewed By: dtolnay Differential Revision: D87088632 fbshipit-source-id: 956943c547bb2ebe5aa8b031d741e9467233352e
1 parent 1ab2c46 commit c084265

File tree

2 files changed

+9
-3
lines changed

2 files changed

+9
-3
lines changed

allocative/allocative/src/flamegraph.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ impl FlameGraph {
8686

8787
/// Write flamegraph in format suitable for [`flamegraph.pl`] or [inferno].
8888
///
89-
/// [flamegraph.pl]: https://github.com/brendangregg/FlameGraph
89+
/// [`flamegraph.pl`]: https://github.com/brendangregg/FlameGraph
9090
/// [inferno]: https://github.com/jonhoo/inferno
9191
pub fn write(&self) -> String {
9292
let mut r = String::new();

starlark_map/src/vec2/iter.rs

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -115,8 +115,14 @@ impl<A, B> Drop for IntoIter<A, B> {
115115
fn drop(&mut self) {
116116
unsafe {
117117
let rem = self.len();
118-
ptr::drop_in_place(slice::from_raw_parts_mut(self.aaa_begin.as_ptr(), rem));
119-
ptr::drop_in_place(slice::from_raw_parts_mut(self.bbb_begin.as_ptr(), rem));
118+
ptr::drop_in_place(std::ptr::slice_from_raw_parts_mut(
119+
self.aaa_begin.as_ptr(),
120+
rem,
121+
));
122+
ptr::drop_in_place(std::ptr::slice_from_raw_parts_mut(
123+
self.bbb_begin.as_ptr(),
124+
rem,
125+
));
120126
Vec2::<A, B>::dealloc_impl(self.bbb_ptr, self.cap);
121127
}
122128
}

0 commit comments

Comments
 (0)