Skip to content

Commit 253159c

Browse files
authored
Merge pull request #131 from Rust-for-Linux/dev/cleanup
internal: remove redundant `#[pin]` filtering
2 parents 7b0dd96 + cac92c3 commit 253159c

1 file changed

Lines changed: 0 additions & 4 deletions

File tree

internal/src/pin_data.rs

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -258,8 +258,6 @@ fn generate_projections(
258258
..
259259
},
260260
)| {
261-
let mut attrs = attrs.clone();
262-
attrs.retain(|a| !a.path().is_ident("pin"));
263261
let mut no_doc_attrs = attrs.clone();
264262
no_doc_attrs.retain(|a| !a.path().is_ident("doc"));
265263
let ident = ident
@@ -360,8 +358,6 @@ fn generate_the_pin_data(
360358
struct_ident: &Ident,
361359
pinned: bool,
362360
) -> TokenStream {
363-
let mut attrs = attrs.clone();
364-
attrs.retain(|a| !a.path().is_ident("pin"));
365361
let ident = ident
366362
.as_ref()
367363
.expect("only structs with named fields are supported");

0 commit comments

Comments
 (0)