-
Related to:
- [`str::split_once`](https://doc.rust-lang.org/stable/std/primitive.str.html#method.split_once)
- [`str::splitn`](https://doc.rust-lang.org/stable/std/primitive.str.html#method.splitn…
-
```rust
impl FilterEntry where P: FnMut(&DirEntry) -> bool {
pub fn filter_entry(self, predicate: P) -> FilterEntry {
FilterEntry { it: self, predicate: predicate }
}
}
```
Th…
CAD97 updated
3 years ago
-
`::from_str` is unidiomatic and produces unhelpful error messages if you're messing with imports.
Please don't do this while we're refactoring the crates.
-
### Summary
`unnecessary_cast` does not insert actual type to `std::ptr::null{_mut}`'s turbofish.
### Reproducer
I tried this code:
```rust
#![deny(clippy::unnecessary_cast)]
fn x() {
let a = …
-
See https://github.com/hrsh7th/nvim-cmp/issues/2065
**rustc version**: `rustc 1.81.0 (eeb90cda1 2024-09-04)`
**editor or extension**: nvim
-
## Current Behavior
Given the following code:
```rust
let mut combinations = (1..2).combinations();
assert_eq!(combinations.next(), None);
```
where `Iterator::combinations` is defined as:
…
-
I tried this code:
```rust
#[derive(Debug)]
pub struct SharedBufferRng SourceType> {
receiver: Receiver,
calling_thread_fallback: Option
}
impl<
const WORDS_PER_SEED: usi…
-
-
I tried this code:
```rust
#![feature(generic_associated_types)]
use std::fmt::Debug;
trait Classic {
type Assoc;
}
trait Gat {
type Assoc = ();
}
fn classic_debug(_: T)
w…
-
### Proposal
Allow to write generic code with type safe wrappers around `Digest`
### Outline
```rust
use winter_crypto::Hasher;
/// Types that implement this trait can be hashed, and the …