Skip to content

Commit

Permalink
Merge pull request #63 from alex/patch-1
Browse files Browse the repository at this point in the history
fixes #62 -- resolve clippy warning from rust 1.62
  • Loading branch information
someguynamedjosh authored Jul 31, 2022
2 parents 273af43 + 06ffe9a commit 786f7a4
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 9 deletions.
12 changes: 3 additions & 9 deletions examples/src/fail_tests/auto_covariant.stderr
Original file line number Diff line number Diff line change
Expand Up @@ -9,13 +9,7 @@ error: Ouroboros cannot automatically determine if this type is covariant.
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

error[E0601]: `main` function not found in crate `$CRATE`
--> $DIR/auto_covariant.rs:1:1
--> $DIR/auto_covariant.rs:12:2
|
1 | / use ouroboros::self_referencing;
2 | |
3 | | struct NotGuaranteedCovariant<'a> {
4 | | data: &'a (),
... |
11 | | field: NotGuaranteedCovariant<'this>
12 | | }
| |_^ consider adding a `main` function to `$DIR/src/fail_tests/auto_covariant.rs`
12 | }
| ^ consider adding a `main` function to `$DIR/src/fail_tests/auto_covariant.rs`
1 change: 1 addition & 0 deletions ouroboros_macro/src/generate/into_heads.rs
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,7 @@ pub fn make_into_heads(info: &StructInfo, options: Options) -> (TokenStream, Tok
#documentation
#[allow(clippy::drop_ref)]
#[allow(clippy::drop_copy)]
#[allow(clippy::drop_non_drop)]
#visibility fn into_heads(self) -> Heads<#(#generic_args),*> {
#(#code)*
Heads {
Expand Down

0 comments on commit 786f7a4

Please sign in to comment.