Skip to content

Commit 4712701

Browse files
authored
Merge pull request #671 from nyurik/linting
A few minor lint fixes
2 parents 5a91554 + 98dc73f commit 4712701

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

src/lib.rs

+3-3
Original file line numberDiff line numberDiff line change
@@ -292,7 +292,7 @@
292292
//! configured in your `Cargo.toml`.
293293
//!
294294
//! * `std` allows use of `std` crate instead of the default `core`. Enables using `std::error` and
295-
//! `set_boxed_logger` functionality.
295+
//! `set_boxed_logger` functionality.
296296
//! * `serde` enables support for serialization and deserialization of `Level` and `LevelFilter`.
297297
//!
298298
//! ```toml
@@ -1035,7 +1035,7 @@ impl<'a> RecordBuilder<'a> {
10351035
}
10361036
}
10371037

1038-
impl<'a> Default for RecordBuilder<'a> {
1038+
impl Default for RecordBuilder<'_> {
10391039
fn default() -> Self {
10401040
Self::new()
10411041
}
@@ -1164,7 +1164,7 @@ impl<'a> MetadataBuilder<'a> {
11641164
}
11651165
}
11661166

1167-
impl<'a> Default for MetadataBuilder<'a> {
1167+
impl Default for MetadataBuilder<'_> {
11681168
fn default() -> Self {
11691169
Self::new()
11701170
}

tests/integration.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ fn test_line_numbers(state: &State) {
9797
log::set_max_level(LevelFilter::Trace);
9898

9999
info!(""); // ensure check_line function follows log macro
100-
check_log_location(&state);
100+
check_log_location(state);
101101

102102
#[track_caller]
103103
fn check_log_location(state: &State) {

0 commit comments

Comments
 (0)