mirror of
https://github.com/astral-sh/ruff.git
synced 2025-08-21 11:00:31 +00:00
Update FStringElements
to deref to a slice (#11570)
Ref: https://github.com/astral-sh/ruff/pull/11400#discussion_r1615600354
This commit is contained in:
parent
37ad994318
commit
e28e737296
2 changed files with 3 additions and 3 deletions
|
@ -1580,7 +1580,7 @@ impl<'a> IntoIterator for &'a mut FStringElements {
|
|||
}
|
||||
|
||||
impl Deref for FStringElements {
|
||||
type Target = Vec<FStringElement>;
|
||||
type Target = [FStringElement];
|
||||
|
||||
fn deref(&self) -> &Self::Target {
|
||||
&self.0
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue