Skip to content

Commit d5d339c

Browse files
committed
Address lints from latest rustc
1 parent 3a60ceb commit d5d339c

File tree

6 files changed

+7
-0
lines changed

6 files changed

+7
-0
lines changed

time-core/src/convert.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,9 @@ mod sealed {
1212
const VALUE: Output;
1313
}
1414

15+
/// A trait for defining the default output type for the `per` method.
1516
pub trait DefaultOutput<T> {
17+
/// The default output type for the `per` method.
1618
type Output;
1719
}
1820
}

time/src/date.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1415,6 +1415,7 @@ impl Date {
14151415
}
14161416

14171417
mod private {
1418+
/// Metadata for `Date`.
14181419
#[non_exhaustive]
14191420
#[derive(Debug, Clone, Copy)]
14201421
pub struct DateMetadata {

time/src/month.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -177,6 +177,7 @@ impl Month {
177177
}
178178

179179
mod private {
180+
/// Metadata for `Month`.
180181
#[non_exhaustive]
181182
#[derive(Debug, Clone, Copy)]
182183
pub struct MonthMetadata;

time/src/time.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -934,6 +934,7 @@ impl Time {
934934
}
935935

936936
mod private {
937+
/// Metadata for `Time`.
937938
#[non_exhaustive]
938939
#[derive(Debug, Clone, Copy)]
939940
pub struct TimeMetadata {

time/src/utc_offset.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -508,6 +508,7 @@ impl UtcOffset {
508508
}
509509

510510
mod private {
511+
/// Metadata for `UtcOffset`.
511512
#[non_exhaustive]
512513
#[derive(Debug, Clone, Copy)]
513514
pub struct UtcOffsetMetadata;

time/src/weekday.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -170,6 +170,7 @@ impl Weekday {
170170
}
171171

172172
mod private {
173+
/// Metadata for `Weekday`.
173174
#[non_exhaustive]
174175
#[derive(Debug, Clone, Copy)]
175176
pub struct WeekdayMetadata;

0 commit comments

Comments
 (0)