mirror of
https://gitlab.com/veloren/veloren.git
synced 2024-08-30 18:12:32 +00:00
Resolve unused '#[allow(clippy::unnecessary_wraps)]' error supressions
This commit is contained in:
parent
1ac3d1b761
commit
70d0840e96
@ -1833,7 +1833,6 @@ impl Client {
|
|||||||
Ok(())
|
Ok(())
|
||||||
}
|
}
|
||||||
|
|
||||||
#[allow(clippy::unnecessary_wraps)]
|
|
||||||
fn handle_server_in_game_msg(
|
fn handle_server_in_game_msg(
|
||||||
&mut self,
|
&mut self,
|
||||||
frontend_events: &mut Vec<Event>,
|
frontend_events: &mut Vec<Event>,
|
||||||
@ -2012,7 +2011,6 @@ impl Client {
|
|||||||
Ok(())
|
Ok(())
|
||||||
}
|
}
|
||||||
|
|
||||||
#[allow(clippy::unnecessary_wraps)]
|
|
||||||
fn handle_server_terrain_msg(&mut self, msg: ServerGeneral) -> Result<(), Error> {
|
fn handle_server_terrain_msg(&mut self, msg: ServerGeneral) -> Result<(), Error> {
|
||||||
prof_span!("handle_server_terrain_mgs");
|
prof_span!("handle_server_terrain_mgs");
|
||||||
match msg {
|
match msg {
|
||||||
@ -2034,7 +2032,6 @@ impl Client {
|
|||||||
Ok(())
|
Ok(())
|
||||||
}
|
}
|
||||||
|
|
||||||
#[allow(clippy::unnecessary_wraps)]
|
|
||||||
fn handle_server_character_screen_msg(
|
fn handle_server_character_screen_msg(
|
||||||
&mut self,
|
&mut self,
|
||||||
events: &mut Vec<Event>,
|
events: &mut Vec<Event>,
|
||||||
|
@ -30,7 +30,6 @@ pub fn event_handler(_args: TokenStream, item: TokenStream) -> TokenStream {
|
|||||||
|
|
||||||
let out: proc_macro2::TokenStream = if fn_args.len() == 1 {
|
let out: proc_macro2::TokenStream = if fn_args.len() == 1 {
|
||||||
quote! {
|
quote! {
|
||||||
#[allow(clippy::unnecessary_wraps)]
|
|
||||||
#[no_mangle]
|
#[no_mangle]
|
||||||
pub fn #fn_name(intern__ptr: i64, intern__len: i64) -> i64 {
|
pub fn #fn_name(intern__ptr: i64, intern__len: i64) -> i64 {
|
||||||
let input = ::veloren_plugin_rt::read_input(intern__ptr as _,intern__len as _).unwrap();
|
let input = ::veloren_plugin_rt::read_input(intern__ptr as _,intern__len as _).unwrap();
|
||||||
@ -47,7 +46,6 @@ pub fn event_handler(_args: TokenStream, item: TokenStream) -> TokenStream {
|
|||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
quote! {
|
quote! {
|
||||||
#[allow(clippy::unnecessary_wraps)]
|
|
||||||
#[no_mangle]
|
#[no_mangle]
|
||||||
pub fn #fn_name(intern__ptr: i64, intern__len: i64) -> i64 {
|
pub fn #fn_name(intern__ptr: i64, intern__len: i64) -> i64 {
|
||||||
let input = ::veloren_plugin_rt::read_input(intern__ptr as _,intern__len as _).unwrap();
|
let input = ::veloren_plugin_rt::read_input(intern__ptr as _,intern__len as _).unwrap();
|
||||||
|
@ -32,7 +32,6 @@ lazy_static::lazy_static! {
|
|||||||
}
|
}
|
||||||
const TPS: u64 = 30;
|
const TPS: u64 = 30;
|
||||||
|
|
||||||
#[allow(clippy::unnecessary_wraps)]
|
|
||||||
fn main() -> io::Result<()> {
|
fn main() -> io::Result<()> {
|
||||||
let app = ArgvApp::from_args();
|
let app = ArgvApp::from_args();
|
||||||
|
|
||||||
|
@ -771,7 +771,6 @@ mod tests {
|
|||||||
use super::*;
|
use super::*;
|
||||||
|
|
||||||
// Helper function
|
// Helper function
|
||||||
#[allow(clippy::unnecessary_wraps)]
|
|
||||||
fn test_cylinder(pos: comp::Pos) -> Option<Cylinder> {
|
fn test_cylinder(pos: comp::Pos) -> Option<Cylinder> {
|
||||||
Some(Cylinder::from_components(pos.0, None, None, None))
|
Some(Cylinder::from_components(pos.0, None, None, None))
|
||||||
}
|
}
|
||||||
|
@ -14,7 +14,6 @@ use tracing::{debug, error, warn};
|
|||||||
|
|
||||||
impl Sys {
|
impl Sys {
|
||||||
#[allow(clippy::too_many_arguments)]
|
#[allow(clippy::too_many_arguments)]
|
||||||
#[allow(clippy::unnecessary_wraps)]
|
|
||||||
fn handle_general_msg(
|
fn handle_general_msg(
|
||||||
server_emitter: &mut common::event::Emitter<'_, ServerEvent>,
|
server_emitter: &mut common::event::Emitter<'_, ServerEvent>,
|
||||||
entity: specs::Entity,
|
entity: specs::Entity,
|
||||||
|
@ -5221,7 +5221,6 @@ impl FigureColLights {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
#[allow(clippy::unnecessary_wraps)]
|
|
||||||
fn make_atlas(renderer: &mut Renderer) -> Result<AtlasAllocator, RenderError> {
|
fn make_atlas(renderer: &mut Renderer) -> Result<AtlasAllocator, RenderError> {
|
||||||
let max_texture_size = renderer.max_texture_size();
|
let max_texture_size = renderer.max_texture_size();
|
||||||
let atlas_size = guillotiere::Size::new(max_texture_size as i32, max_texture_size as i32);
|
let atlas_size = guillotiere::Size::new(max_texture_size as i32, max_texture_size as i32);
|
||||||
|
Loading…
Reference in New Issue
Block a user