-
I sometimes write enums with a comment at the end saying something like "I should add foo in the future". Like
```rust
enum MyEnum {
Bar,
// I should add Foo
}
```
Unfortunately, rustfmt th…
msrd0 updated
2 months ago
-
a part of the CI uses rusfmt to check that the code is well formatted, but the build does not pass:
https://travis-ci.org/RustBeginners/please/jobs/331855924#L559-L563
please fix it ;)
-
## Environment
* **IntelliJ Rust plugin version:** 0.4.200.5421-232
* **Rust toolchain version:** stable-x86_64-unknown-linux-gnu - rustc 1.72.0
* **IDE name and version:** CLion 2023.2
* **…
-
Currently, the examples in the Rust documentation is inconsistent in style. For instance, there are many examples that use 3 space tabs (probably accidentally), while most use 4.
How do we enforce…
-
#9 introduces code linting with `clippy` and running the project's tests. We should take this a step further and ensure consistent coding style in our continuous integration pipeline using `rustfmt` t…
-
I noticed that you're not using the default rust style guidelines.
It would be better to use [rustfmt](https://github.com/rust-lang/rustfmt) to format your code so that coding style can be unified am…
-
```rust
fn foo()
where
for T: Clone,
{
}
fn bar()
where
T: for Clone,
{
}
```
https://play.rust-lang.org/?version=nightly&mode=debug&edition=2021&gist=677e24af49ee0202ec774403628…
-
Over the last few years I've made some changes that attempt to split the current `rust_toolchain` into multiple toolchains for components that are not typically required for compiling Rust code:
- ht…
-
* rust.vim version:
Latest master
commit hash: `4aa69b84c8a58fcec6b6dad6fe244b916b1cf830`
### Steps to reproduce:
1. Create a `.rustfmt.toml` without an explicit edition key defined.
2. Use an…
-
Every `flush()` results in copies of all "entries" logged so far, followed by the most recent "entry". Is this PEBKAC[1], or a bug?
```rust
type IonWriter = Writer;
pub struct Log {
ion_wr…