mirror of
https://github.com/LemmyNet/activitypub-federation-rust.git
synced 2024-05-10 05:02:40 +00:00
fmt
This commit is contained in:
parent
b80408d806
commit
2aa64ad1de
|
@ -20,8 +20,7 @@ where
|
||||||
for<'de2> <Kind as Collection>::Kind: Deserialize<'de2>,
|
for<'de2> <Kind as Collection>::Kind: Deserialize<'de2>,
|
||||||
{
|
{
|
||||||
/// Construct a new CollectionId instance
|
/// 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>))
|
Ok(Self(Box::new(Url::parse(url)?), PhantomData::<Kind>))
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -65,8 +65,7 @@ where
|
||||||
for<'de2> <Kind as Object>::Kind: serde::Deserialize<'de2>,
|
for<'de2> <Kind as Object>::Kind: serde::Deserialize<'de2>,
|
||||||
{
|
{
|
||||||
/// Construct a new objectid instance
|
/// 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>))
|
Ok(Self(Box::new(Url::parse(url)?), PhantomData::<Kind>))
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue