mirror of
https://github.com/LemmyNet/activitypub-federation-rust.git
synced 2024-05-09 20:52:39 +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>,
|
||||
{
|
||||
/// 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>))
|
||||
}
|
||||
|
||||
|
|
|
@ -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>))
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue