Skip to content

Commit

Permalink
Merge pull request #671 from nyurik/linting
Browse files Browse the repository at this point in the history
A few minor lint fixes
  • Loading branch information
KodrAus authored Feb 21, 2025
2 parents 5a91554 + 98dc73f commit 4712701
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -292,7 +292,7 @@
//! configured in your `Cargo.toml`.
//!
//! * `std` allows use of `std` crate instead of the default `core`. Enables using `std::error` and
//! `set_boxed_logger` functionality.
//! `set_boxed_logger` functionality.
//! * `serde` enables support for serialization and deserialization of `Level` and `LevelFilter`.
//!
//! ```toml
Expand Down Expand Up @@ -1035,7 +1035,7 @@ impl<'a> RecordBuilder<'a> {
}
}

impl<'a> Default for RecordBuilder<'a> {
impl Default for RecordBuilder<'_> {
fn default() -> Self {
Self::new()
}
Expand Down Expand Up @@ -1164,7 +1164,7 @@ impl<'a> MetadataBuilder<'a> {
}
}

impl<'a> Default for MetadataBuilder<'a> {
impl Default for MetadataBuilder<'_> {
fn default() -> Self {
Self::new()
}
Expand Down
2 changes: 1 addition & 1 deletion tests/integration.rs
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ fn test_line_numbers(state: &State) {
log::set_max_level(LevelFilter::Trace);

info!(""); // ensure check_line function follows log macro
check_log_location(&state);
check_log_location(state);

#[track_caller]
fn check_log_location(state: &State) {
Expand Down

0 comments on commit 4712701

Please sign in to comment.