-
Looks that a lot of pedantic rules are really useful to improve/unify style.
Command of manually chosen clippy rules
```
cargo clippy -- -Wclippy::bool_to_int_with_if -Wclippy::checked_conversions…
-
Hello, the last couple of days I tried to migrate my XAudio2 project from C++ to Rust and was simply unable to implement the **IXAudio2VoiceCallback** interface.
I am quite new to the rust language…
-
## Environment
* **IntelliJ Rust plugin version:** 0.3.133.3426-202
* **Rust toolchain version:** 1.47.0
* **IDE name and version:** CLion 2020.2
* **Operating system:** Windows 10
## Problem…
-
Currently running `x setup` prompts an editor setup for VSCode for rustc compiler development in the following way :
```
x.py can automatically install the recommended `.vscode/settings.json` file for…
-
**Version**
benches v0.0.0 (/builds/psumbera/tokio/benches)
└── tokio v1.38.0 (/builds/psumbera/tokio/tokio)
└── tokio-macros v2.3.0 (proc-macro) (/builds/psumbera/tokio/tokio-macros)
…
-
Currently, typechecking is performed only dynamically. This leads to a compile/test cycle that's much longer than it needs to be if the rule wouldn't trigger until later in the program.
Explore usi…
-
Something goes wrong deep in the innards of the macro when you try to detour an extern "Rust" function that takes a reference as a parameter:
static_detours! {
struct DetourPrintln: fn…
-
Part of https://github.com/paritytech/polkadot-sdk/issues/2415
`ValidateUnsigned` can be deprecated with a rust attribute and `#[validate_unsigned]` by emitting a [proc-macro-warning](https://crate…
-
## Environment
* **IntelliJ Rust plugin version:** 0.4.165.4438-213
* **Rust toolchain version:** 1.59.0 (9d1b2106e 2022-02-23) x86_64-unknown-linux-gnu
* **IDE name and version:** CLion 2021.3.2…
-
One oftentimes has a `struct` of metrics like:
``` rust
struct Metrics {
a: Counter,
b: Gauge,
}
```
Code to register the metrics in `Metrics` with a `Registry` could be generated v…