Skip to content

Commit

Permalink
fix lints
Browse files Browse the repository at this point in the history
  • Loading branch information
BenjaminBrienen committed Dec 27, 2024
1 parent 52fdcb9 commit 5bfbd56
Show file tree
Hide file tree
Showing 5 changed files with 12 additions and 5 deletions.
4 changes: 4 additions & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,10 @@ unsafe_op_in_unsafe_fn = "warn"
unused_qualifications = "warn"
internal_features = { level = "allow" }

[profile.release]
opt-level = 3
lto = true

[package.metadata.docs.rs]
# This cfg is needed so that #[doc(fake_variadic)] is correctly propagated for
# impls for re-exported traits. See https://github.com/rust-lang/cargo/issues/8811
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
[![Downloads](https://img.shields.io/crates/d/variadics_please.svg)](https://crates.io/crates/variadics_please)
[![Docs](https://docs.rs/variadics_please/badge.svg)](https://docs.rs/variadics_please/latest/variadics_please/)

Provides a macro for implementing traits on variadic types.
Provides macros for implementing traits on variadic types.

## Contributing

Expand Down
4 changes: 0 additions & 4 deletions benches/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,6 @@ rand = "0.8"
rand_chacha = "0.3"
criterion = { version = "0.3", features = ["html_reports"] }

[profile.release]
opt-level = 3
lto = true

[[bench]]
name = "dummy"
path = "benches/dummy.rs"
Expand Down
5 changes: 5 additions & 0 deletions examples/demonstrations/all_tuples.rs
Original file line number Diff line number Diff line change
@@ -1,9 +1,14 @@
//! An example of using `all_tuples!`
use variadics_please::all_tuples;

fn main() {}

/// For demonstration
pub trait Foo {
/// For demonstration
const FOO_HARDER: bool;
/// For demonstration
fn foo() -> bool;
}

Expand Down
2 changes: 2 additions & 0 deletions src/lib.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
//! Provides macros for implementing traits on variadic types.
// FIXME(15321): solve CI failures, then replace with `#![expect()]`.
#![allow(missing_docs, reason = "Not all docs are written yet, see #3492.")]
#![cfg_attr(any(docsrs, docsrs_dep), feature(doc_auto_cfg, rustdoc_internals))]
Expand Down

0 comments on commit 5bfbd56

Please sign in to comment.