mirror of
https://gitlab.com/veloren/veloren.git
synced 2024-08-30 18:12:32 +00:00
Merge branch 'xMAC94x/remove_cargo_check' into 'master'
remove `cargo check` as its already included in `cargo clippy` See merge request veloren/veloren!1689
This commit is contained in:
commit
0ce08906cb
@ -1,18 +1,10 @@
|
|||||||
check:
|
# cargo clippy is a superset of cargo check, so we don't check manually
|
||||||
extends: .recompile-branch
|
|
||||||
stage: check
|
|
||||||
script:
|
|
||||||
- ln -s /dockercache/cache-all target
|
|
||||||
- cargo check --locked
|
|
||||||
- cargo check --examples --locked
|
|
||||||
|
|
||||||
code-quality:
|
code-quality:
|
||||||
extends: .recompile-branch
|
extends: .recompile-branch
|
||||||
stage: check
|
stage: check
|
||||||
script:
|
script:
|
||||||
- ln -s /dockercache/cache-all target
|
- ln -s /dockercache/cache-all target
|
||||||
- cargo clippy -- -D warnings
|
- cargo clippy --all-targets --locked -- -D warnings
|
||||||
- cargo clippy --tests -- -D warnings
|
|
||||||
- cargo fmt --all -- --check
|
- cargo fmt --all -- --check
|
||||||
|
|
||||||
security:
|
security:
|
||||||
|
@ -117,6 +117,7 @@ impl Server {
|
|||||||
trace!("Stop connect_manager");
|
trace!("Stop connect_manager");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#[allow(clippy::eval_order_dependence)]
|
||||||
async fn loop_participant(&self, p: Participant) {
|
async fn loop_participant(&self, p: Participant) {
|
||||||
if let (Ok(cmd_out), Ok(file_out), Ok(cmd_in), Ok(file_in)) = (
|
if let (Ok(cmd_out), Ok(file_out), Ok(cmd_in), Ok(file_in)) = (
|
||||||
p.open(15, Promises::ORDERED | Promises::CONSISTENCY).await,
|
p.open(15, Promises::ORDERED | Promises::CONSISTENCY).await,
|
||||||
|
@ -14,6 +14,7 @@ pub fn event_handler(_args: TokenStream, item: TokenStream) -> TokenStream {
|
|||||||
let fn_return = sig.output; // comma separated args
|
let fn_return = sig.output; // comma separated args
|
||||||
|
|
||||||
let out: proc_macro2::TokenStream = quote! {
|
let out: proc_macro2::TokenStream = quote! {
|
||||||
|
#[allow(clippy::unnecessary_wraps)]
|
||||||
#[no_mangle]
|
#[no_mangle]
|
||||||
pub fn #fn_name(intern__ptr: i32, intern__len: u32) -> i32 {
|
pub fn #fn_name(intern__ptr: i32, intern__len: u32) -> i32 {
|
||||||
let input = ::veloren_plugin_rt::read_input(intern__ptr,intern__len).unwrap();
|
let input = ::veloren_plugin_rt::read_input(intern__ptr,intern__len).unwrap();
|
||||||
|
@ -375,22 +375,18 @@ fn main() {
|
|||||||
if is_camera {
|
if is_camera {
|
||||||
focus.z += spd * scale;
|
focus.z += spd * scale;
|
||||||
samples_changed = true;
|
samples_changed = true;
|
||||||
} else {
|
} else if (scale * 2.0).is_normal() {
|
||||||
if (scale * 2.0).is_normal() {
|
|
||||||
scale *= 2.0;
|
scale *= 2.0;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
|
||||||
if win.is_key_down(minifb::Key::F) {
|
if win.is_key_down(minifb::Key::F) {
|
||||||
if is_camera {
|
if is_camera {
|
||||||
focus.z -= spd * scale;
|
focus.z -= spd * scale;
|
||||||
samples_changed = true;
|
samples_changed = true;
|
||||||
} else {
|
} else if (scale / 2.0).is_normal() {
|
||||||
if (scale / 2.0).is_normal() {
|
|
||||||
scale /= 2.0;
|
scale /= 2.0;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
win.update_with_buffer(&buf, W, H).unwrap();
|
win.update_with_buffer(&buf, W, H).unwrap();
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user