Skip to content

Commit 279a8d3

Browse files
committed
Add back smaller custom Debug impl
1 parent f8d1505 commit 279a8d3

2 files changed

Lines changed: 8 additions & 1 deletion

File tree

-245 KB
Binary file not shown.

‎provider/core/src/marker.rs‎

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44

55
use crate::fallback::LocaleFallbackConfig;
66
use crate::{DataError, DataErrorKind, DataLocale, DataProvider, DataProviderWithMarker};
7+
use core::fmt;
78
use core::marker::PhantomData;
89
use yoke::Yokeable;
910
use zerovec::ule::*;
@@ -506,7 +507,7 @@ impl DataMarkerPath {
506507
/// Executables can be searched for `DataMarkerInfo` instances to produce optimized data files.
507508
/// Therefore, users should not generally create DataMarkerInfo instances; they should instead use
508509
/// the ones exported by a component.
509-
#[derive(Debug, Copy, Clone, PartialEq, Eq)]
510+
#[derive(Copy, Clone, PartialEq, Eq)]
510511
#[non_exhaustive]
511512
pub struct DataMarkerInfo {
512513
/// The human-readable path string ends with `@` followed by one or more digits (the version
@@ -622,6 +623,12 @@ macro_rules! __data_marker_path {
622623
#[doc(inline)]
623624
pub use __data_marker_path as data_marker_path;
624625

626+
impl fmt::Debug for DataMarkerInfo {
627+
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
628+
self.path.fmt(f)
629+
}
630+
}
631+
625632
/// A marker for the given `DataStruct`.
626633
#[derive(Clone, Copy, PartialEq, Eq, Hash, Debug)]
627634
pub struct ErasedMarker<DataStruct: for<'a> Yokeable<'a>>(PhantomData<DataStruct>);

0 commit comments

Comments
 (0)