Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 1 addition & 4 deletions lib/environ/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,7 @@
#![warn(unused_import_braces)]
#![cfg_attr(feature = "std", deny(unstable_features))]
#![cfg_attr(feature = "clippy", plugin(clippy(conf_file = "../../clippy.toml")))]
#![cfg_attr(
feature = "cargo-clippy",
allow(clippy::new_without_default, clippy::new_without_default_derive)
)]
#![cfg_attr(feature = "cargo-clippy", allow(clippy::new_without_default))]
#![cfg_attr(
feature = "cargo-clippy",
warn(
Expand Down
2 changes: 1 addition & 1 deletion lib/environ/src/vmoffsets.rs
Original file line number Diff line number Diff line change
Expand Up @@ -526,7 +526,7 @@ pub struct TargetSharedSignatureIndex(u32);
impl TargetSharedSignatureIndex {
/// Constructs `TargetSharedSignatureIndex`.
pub fn new(value: u32) -> Self {
TargetSharedSignatureIndex(value)
Self(value)
}

/// Returns index value.
Expand Down
5 changes: 1 addition & 4 deletions lib/jit/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,7 @@
#![warn(unused_import_braces)]
#![cfg_attr(feature = "std", deny(unstable_features))]
#![cfg_attr(feature = "clippy", plugin(clippy(conf_file = "../../clippy.toml")))]
#![cfg_attr(
feature = "cargo-clippy",
allow(clippy::new_without_default, clippy::new_without_default_derive)
)]
#![cfg_attr(feature = "cargo-clippy", allow(clippy::new_without_default))]
#![cfg_attr(
feature = "cargo-clippy",
warn(
Expand Down
5 changes: 1 addition & 4 deletions lib/obj/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,7 @@
)]
#![warn(unused_import_braces)]
#![cfg_attr(feature = "clippy", plugin(clippy(conf_file = "../../clippy.toml")))]
#![cfg_attr(
feature = "cargo-clippy",
allow(clippy::new_without_default, clippy::new_without_default_derive)
)]
#![cfg_attr(feature = "cargo-clippy", allow(clippy::new_without_default))]
#![cfg_attr(
feature = "cargo-clippy",
warn(
Expand Down
4 changes: 2 additions & 2 deletions lib/runtime/src/jit_int.rs
Original file line number Diff line number Diff line change
Expand Up @@ -46,8 +46,8 @@ pub struct GdbJitImageRegistration {

impl GdbJitImageRegistration {
/// Registers JIT image using __jit_debug_register_code
pub fn register(file: Vec<u8>) -> GdbJitImageRegistration {
GdbJitImageRegistration {
pub fn register(file: Vec<u8>) -> Self {
Self {
entry: unsafe { register_gdb_jit_image(&file) },
file,
}
Expand Down
5 changes: 1 addition & 4 deletions lib/runtime/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,7 @@
#![warn(unused_import_braces)]
#![cfg_attr(feature = "std", deny(unstable_features))]
#![cfg_attr(feature = "clippy", plugin(clippy(conf_file = "../../clippy.toml")))]
#![cfg_attr(
feature = "cargo-clippy",
allow(clippy::new_without_default, clippy::new_without_default_derive)
)]
#![cfg_attr(feature = "cargo-clippy", allow(clippy::new_without_default))]
#![cfg_attr(
feature = "cargo-clippy",
warn(
Expand Down
2 changes: 1 addition & 1 deletion lib/runtime/src/vmcontext.rs
Original file line number Diff line number Diff line change
Expand Up @@ -417,7 +417,7 @@ mod test_vmshared_signature_index {
impl VMSharedSignatureIndex {
/// Create a new `VMSharedSignatureIndex`.
pub fn new(value: u32) -> Self {
VMSharedSignatureIndex(value)
Self(value)
}
}

Expand Down
5 changes: 1 addition & 4 deletions lib/wast/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,7 @@
#![warn(unused_import_braces)]
#![deny(unstable_features)]
#![cfg_attr(feature = "clippy", plugin(clippy(conf_file = "../../clippy.toml")))]
#![cfg_attr(
feature = "cargo-clippy",
allow(clippy::new_without_default, clippy::new_without_default_derive)
)]
#![cfg_attr(feature = "cargo-clippy", allow(clippy::new_without_default))]
#![cfg_attr(
feature = "cargo-clippy",
warn(
Expand Down
12 changes: 6 additions & 6 deletions lib/wast/src/wast.rs
Original file line number Diff line number Diff line change
Expand Up @@ -280,7 +280,7 @@ impl WastContext {
ActionOutcome::Trapped {
message: trap_message,
} => {
println!(
eprintln!(
"{}:{}: TODO: Check the assert_trap message: expected {}, got {}",
filename, line, message, trap_message
);
Expand All @@ -304,7 +304,7 @@ impl WastContext {
});
}
ActionOutcome::Trapped { message } => {
println!(
eprintln!(
"{}:{}: TODO: Check the assert_exhaustion message: {}",
filename, line, message
);
Expand Down Expand Up @@ -420,7 +420,7 @@ impl WastContext {
"{}:{}: invalid module was successfully instantiated",
filename, line
));
println!(
eprintln!(
"{}:{}: TODO: Check the assert_invalid message: {}",
filename, line, message
);
Expand All @@ -430,7 +430,7 @@ impl WastContext {
"{}:{}: malformed module was successfully instantiated",
filename, line
));
println!(
eprintln!(
"{}:{}: TODO: Check the assert_malformed message: {}",
filename, line, message
);
Expand All @@ -440,7 +440,7 @@ impl WastContext {
"{}:{}: uninstantiable module was successfully instantiated",
filename, line
));
println!(
eprintln!(
"{}:{}: TODO: Check the assert_uninstantiable message: {}",
filename, line, message
);
Expand All @@ -450,7 +450,7 @@ impl WastContext {
"{}:{}: unlinkable module was successfully linked",
filename, line
));
println!(
eprintln!(
"{}:{}: TODO: Check the assert_unlinkable message: {}",
filename, line, message
);
Expand Down
5 changes: 1 addition & 4 deletions src/wasm2obj.rs
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,7 @@
)]
#![warn(unused_import_braces)]
#![cfg_attr(feature = "clippy", plugin(clippy(conf_file = "../clippy.toml")))]
#![cfg_attr(
feature = "cargo-clippy",
allow(clippy::new_without_default, clippy::new_without_default_derive)
)]
#![cfg_attr(feature = "cargo-clippy", allow(clippy::new_without_default))]
#![cfg_attr(
feature = "cargo-clippy",
warn(
Expand Down
5 changes: 1 addition & 4 deletions src/wasmtime.rs
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,7 @@
)]
#![warn(unused_import_braces)]
#![cfg_attr(feature = "clippy", plugin(clippy(conf_file = "../clippy.toml")))]
#![cfg_attr(
feature = "cargo-clippy",
allow(clippy::new_without_default, clippy::new_without_default_derive)
)]
#![cfg_attr(feature = "cargo-clippy", allow(clippy::new_without_default))]
#![cfg_attr(
feature = "cargo-clippy",
warn(
Expand Down
5 changes: 1 addition & 4 deletions src/wast.rs
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,7 @@
)]
#![warn(unused_import_braces)]
#![cfg_attr(feature = "clippy", plugin(clippy(conf_file = "../../clippy.toml")))]
#![cfg_attr(
feature = "cargo-clippy",
allow(clippy::new_without_default, clippy::new_without_default_derive)
)]
#![cfg_attr(feature = "cargo-clippy", allow(clippy::new_without_default))]
#![cfg_attr(
feature = "cargo-clippy",
warn(
Expand Down