Skip to content

Commit e3d64df

Browse files
committed
feat(toml): Expose DeFloat::as_str
This is part of #1017
1 parent ffdd211 commit e3d64df

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

crates/toml/src/de/parser/devalue.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,8 @@ impl DeFloat<'_> {
9494
}
9595
}
9696

97-
pub(crate) fn as_str(&self) -> &str {
97+
/// [`FromStr`][std::str::FromStr]-compatible representation of a float
98+
pub fn as_str(&self) -> &str {
9899
self.inner.as_ref()
99100
}
100101
}

0 commit comments

Comments
 (0)