Skip to content

Commit

Permalink
Remove duplicate from_str again
Browse files Browse the repository at this point in the history
  • Loading branch information
OpenByteDev committed Aug 11, 2023
1 parent 2735baf commit fbb413e
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions src/pdcstring/shared.rs
Original file line number Diff line number Diff line change
Expand Up @@ -32,11 +32,6 @@ impl PdCString {
pub fn from_os_str(s: impl AsRef<OsStr>) -> Result<Self, ContainsNul> {
PdCStringInner::from_os_str(s).map(Self::from_inner)
}
/// Construct a [`PdCString`] copy from an [`str`], reencoding it in a platform-dependent manner.
#[inline]
pub fn from_str(s: impl AsRef<str>) -> Result<Self, ContainsNul> {
PdCStringInner::from_str(s).map(Self::from_inner)
}
/// Constructs a new [`PdCString`] copied from a nul-terminated string pointer.
#[inline]
#[must_use]
Expand Down

0 comments on commit fbb413e

Please sign in to comment.