made clippy happy

This commit is contained in:
MaxOhn
2024-06-28 21:36:59 +02:00
parent bf2c960e66
commit ad000794fb
4 changed files with 5 additions and 8 deletions
+1 -1
View File
@@ -24,7 +24,7 @@ pub struct BeatmapAttributes {
/// AR and OD hit windows
#[derive(Copy, Clone, Debug, PartialEq)]
pub struct HitWindows {
/// Hit window for approach rate i.e. TimePreempt in milliseconds.
/// Hit window for approach rate i.e. `TimePreempt` in milliseconds.
pub ar: f64,
/// Hit window for overall difficulty i.e. time to hit a 300 ("Great") in milliseconds.
pub od: f64,
+1 -1
View File
@@ -227,7 +227,7 @@ impl BeatmapState {
I: Iterator<Item = &'a str>,
F: FnOnce(&mut Self, &[&'a str]) -> O,
{
self.point_split.extend(point_split.map(|s| s as *const _));
self.point_split.extend(point_split.map(std::ptr::from_ref));
let ptr = self.point_split.as_ptr();
let len = self.point_split.len();