Skip to content

Commit

Permalink
TryInto import no longer needed for 2021 edition and causes compile w…
Browse files Browse the repository at this point in the history
…arnings for beta rust compiler
  • Loading branch information
aclysma committed Apr 10, 2024
1 parent 295c336 commit c0179ac
Show file tree
Hide file tree
Showing 4 changed files with 0 additions and 5 deletions.
2 changes: 0 additions & 2 deletions rafx-base/src/b3f.rs
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,6 @@
// Alignment of blocks to 16 bytes promotes reinterpreting bytes i.e. u8 to u64 or __m128 without
// tripping over undefined behavior

use std::convert::TryInto;

const HEADER_SIZE_IN_BYTES: usize = 16;
const BLOCK_LENGTH_SIZE_IN_BYTES: usize = 8;
const BLOCK_ALIGNMENT_IN_BYTES: usize = 16;
Expand Down
1 change: 0 additions & 1 deletion rafx-framework/src/render_features/macro_render_phase.rs
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,6 @@ macro_rules! declare_render_phase {
$struct_name::render_phase_debug_name(),
);

use std::convert::TryInto;
$atomic_constant_name.store(
index.try_into().unwrap(),
std::sync::atomic::Ordering::Release,
Expand Down
1 change: 0 additions & 1 deletion rafx-plugins/src/assets/anim/blender_anim_importer.rs
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@ use hydrate_pipeline::{
};
use rafx::api::{RafxError, RafxResult};
use serde::{Deserialize, Serialize};
use std::convert::TryInto;
use type_uuid::*;

#[allow(dead_code)]
Expand Down
1 change: 0 additions & 1 deletion rafx/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,6 @@ pub mod render_feature_mod_prelude {
RenderFeature, RenderFeatureDebugConstants, RenderFeatureFlag, RenderFeatureFlagIndex,
RenderFeatureIndex,
};
pub use std::convert::TryInto;
}

#[cfg(feature = "framework")]
Expand Down

0 comments on commit c0179ac

Please sign in to comment.