Skip to content

Commit fa61f4b

Browse files
committed
Clean up warnings and nightly features
1 parent 39ba403 commit fa61f4b

File tree

9 files changed

+8
-28
lines changed

9 files changed

+8
-28
lines changed

frontend/desktop/src/debug_views/fs.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -886,7 +886,7 @@ impl MessageView for Fs {
886886

887887
ui.table_next_row();
888888
ui.table_next_column();
889-
ui.text(&format!(
889+
ui.text(format!(
890890
"{} \u{f061} {}",
891891
export.source,
892892
export.destination.display()

frontend/desktop/src/emu.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -482,7 +482,7 @@ pub(super) fn run(
482482

483483
const FRAME_BASE_INTERVAL: Duration = Duration::from_nanos(1_000_000_000 / 60);
484484
let mut frame_interval = framerate_ratio_limit.map(|value| FRAME_BASE_INTERVAL.div_f32(value));
485-
let mut paused_frame_interval = Duration::SECOND.div_f32(paused_framerate_limit);
485+
let mut paused_frame_interval = Duration::from_secs(1).div_f32(paused_framerate_limit);
486486
let mut last_frame_time = Instant::now();
487487

488488
const FPS_CALC_INTERVAL: Duration = Duration::from_secs(1);
@@ -666,7 +666,7 @@ pub(super) fn run(
666666
}
667667

668668
Message::UpdatePausedFramerateLimit(value) => {
669-
paused_frame_interval = Duration::SECOND.div_f32(value);
669+
paused_frame_interval = Duration::from_secs(1).div_f32(value);
670670
}
671671

672672
Message::UpdateSyncToAudio(value) => {

frontend/desktop/src/main.rs

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,7 @@
33
new_zeroed_alloc,
44
slice_ptr_get,
55
array_chunks,
6-
portable_simd,
7-
associated_type_defaults,
8-
const_trait_impl,
9-
const_mut_refs,
106
slice_as_chunks,
11-
duration_constants,
127
hash_extract_if
138
)]
149
#![warn(clippy::all)]

frontend/desktop/src/ui/window.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -608,6 +608,7 @@ impl Builder {
608608
window
609609
};
610610

611+
#[cfg_attr(not(target_os = "macos"), allow(unused_mut))]
611612
let mut window_attrs = WinitWindow::default_attributes()
612613
.with_title(window.title)
613614
.with_inner_size(LogicalSize::new(

render/soft-2d/base/src/lib.rs

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,7 @@
11
#![feature(
22
maybe_uninit_uninit_array,
33
maybe_uninit_slice,
4-
const_mut_refs,
5-
const_trait_impl,
64
generic_const_exprs,
7-
new_zeroed_alloc,
85
portable_simd
96
)]
107
#![warn(clippy::all)]

render/soft-2d/src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#![feature(generic_const_exprs, new_zeroed_alloc, portable_simd)]
1+
#![feature(generic_const_exprs, new_zeroed_alloc)]
22
#![warn(clippy::all)]
33
#![allow(incomplete_features)]
44

render/soft-3d/src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#![feature(portable_simd, const_mut_refs, const_trait_impl, new_zeroed_alloc)]
1+
#![feature(portable_simd, new_zeroed_alloc)]
22
#![warn(clippy::all)]
33

44
mod data;

render/wgpu-2d/src/lib.rs

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,4 @@
1-
#![feature(
2-
new_zeroed_alloc,
3-
generic_const_exprs,
4-
const_mut_refs,
5-
const_trait_impl,
6-
portable_simd
7-
)]
1+
#![feature(generic_const_exprs, new_zeroed_alloc)]
82
#![warn(clippy::all)]
93
#![allow(incomplete_features, clippy::missing_safety_doc)]
104

render/wgpu-3d/src/lib.rs

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,4 @@
1-
#![feature(
2-
const_mut_refs,
3-
const_trait_impl,
4-
portable_simd,
5-
array_windows,
6-
maybe_uninit_uninit_array,
7-
new_zeroed_alloc
8-
)]
1+
#![feature(portable_simd, maybe_uninit_uninit_array, new_zeroed_alloc)]
92
#![warn(clippy::all)]
103

114
mod data;

0 commit comments

Comments
 (0)