This commit is contained in:
Felix Ableitner 2023-11-22 15:39:53 +01:00
parent b80408d806
commit 2aa64ad1de
2 changed files with 2 additions and 4 deletions

View file

@ -20,8 +20,7 @@ where
for<'de2> <Kind as Collection>::Kind: Deserialize<'de2>,
{
/// Construct a new CollectionId instance
pub fn parse(url: &str) -> Result<Self, url::ParseError>
{
pub fn parse(url: &str) -> Result<Self, url::ParseError> {
Ok(Self(Box::new(Url::parse(url)?), PhantomData::<Kind>))
}

View file

@ -65,8 +65,7 @@ where
for<'de2> <Kind as Object>::Kind: serde::Deserialize<'de2>,
{
/// Construct a new objectid instance
pub fn parse(url: &str) -> Result<Self, url::ParseError>
{
pub fn parse(url: &str) -> Result<Self, url::ParseError> {
Ok(Self(Box::new(Url::parse(url)?), PhantomData::<Kind>))
}