Skip to content

Commit

Permalink
Clean up warnings and nightly features
Browse files Browse the repository at this point in the history
  • Loading branch information
kelpsyberry committed Nov 2, 2024
1 parent 39ba403 commit fa61f4b
Show file tree
Hide file tree
Showing 9 changed files with 8 additions and 28 deletions.
2 changes: 1 addition & 1 deletion frontend/desktop/src/debug_views/fs.rs
Original file line number Diff line number Diff line change
Expand Up @@ -886,7 +886,7 @@ impl MessageView for Fs {

ui.table_next_row();
ui.table_next_column();
ui.text(&format!(
ui.text(format!(
"{} \u{f061} {}",
export.source,
export.destination.display()
Expand Down
4 changes: 2 additions & 2 deletions frontend/desktop/src/emu.rs
Original file line number Diff line number Diff line change
Expand Up @@ -482,7 +482,7 @@ pub(super) fn run(

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

const FPS_CALC_INTERVAL: Duration = Duration::from_secs(1);
Expand Down Expand Up @@ -666,7 +666,7 @@ pub(super) fn run(
}

Message::UpdatePausedFramerateLimit(value) => {
paused_frame_interval = Duration::SECOND.div_f32(value);
paused_frame_interval = Duration::from_secs(1).div_f32(value);
}

Message::UpdateSyncToAudio(value) => {
Expand Down
5 changes: 0 additions & 5 deletions frontend/desktop/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,7 @@
new_zeroed_alloc,
slice_ptr_get,
array_chunks,
portable_simd,
associated_type_defaults,
const_trait_impl,
const_mut_refs,
slice_as_chunks,
duration_constants,
hash_extract_if
)]
#![warn(clippy::all)]
Expand Down
1 change: 1 addition & 0 deletions frontend/desktop/src/ui/window.rs
Original file line number Diff line number Diff line change
Expand Up @@ -608,6 +608,7 @@ impl Builder {
window
};

#[cfg_attr(not(target_os = "macos"), allow(unused_mut))]
let mut window_attrs = WinitWindow::default_attributes()
.with_title(window.title)
.with_inner_size(LogicalSize::new(
Expand Down
3 changes: 0 additions & 3 deletions render/soft-2d/base/src/lib.rs
Original file line number Diff line number Diff line change
@@ -1,10 +1,7 @@
#![feature(
maybe_uninit_uninit_array,
maybe_uninit_slice,
const_mut_refs,
const_trait_impl,
generic_const_exprs,
new_zeroed_alloc,
portable_simd
)]
#![warn(clippy::all)]
Expand Down
2 changes: 1 addition & 1 deletion render/soft-2d/src/lib.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#![feature(generic_const_exprs, new_zeroed_alloc, portable_simd)]
#![feature(generic_const_exprs, new_zeroed_alloc)]
#![warn(clippy::all)]
#![allow(incomplete_features)]

Expand Down
2 changes: 1 addition & 1 deletion render/soft-3d/src/lib.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#![feature(portable_simd, const_mut_refs, const_trait_impl, new_zeroed_alloc)]
#![feature(portable_simd, new_zeroed_alloc)]
#![warn(clippy::all)]

mod data;
Expand Down
8 changes: 1 addition & 7 deletions render/wgpu-2d/src/lib.rs
Original file line number Diff line number Diff line change
@@ -1,10 +1,4 @@
#![feature(
new_zeroed_alloc,
generic_const_exprs,
const_mut_refs,
const_trait_impl,
portable_simd
)]
#![feature(generic_const_exprs, new_zeroed_alloc)]
#![warn(clippy::all)]
#![allow(incomplete_features, clippy::missing_safety_doc)]

Expand Down
9 changes: 1 addition & 8 deletions render/wgpu-3d/src/lib.rs
Original file line number Diff line number Diff line change
@@ -1,11 +1,4 @@
#![feature(
const_mut_refs,
const_trait_impl,
portable_simd,
array_windows,
maybe_uninit_uninit_array,
new_zeroed_alloc
)]
#![feature(portable_simd, maybe_uninit_uninit_array, new_zeroed_alloc)]
#![warn(clippy::all)]

mod data;
Expand Down

0 comments on commit fa61f4b

Please sign in to comment.