loosen Point::from_address
This commit is contained in:
parent
54e4d092b5
commit
56208d05f2
@ -2,7 +2,7 @@ use super::*;
|
|||||||
|
|
||||||
impl<'a, Ctx: Context<'a>, A: MentionableBase<'a, Ctx>> Point<'a, Ctx, A>
|
impl<'a, Ctx: Context<'a>, A: MentionableBase<'a, Ctx>> Point<'a, Ctx, A>
|
||||||
where
|
where
|
||||||
A::Fctr: ParseFactory<'a, Ctx>,
|
A::Fctr: FactoryBase<'a, Ctx>,
|
||||||
{
|
{
|
||||||
/// Make a [Point] from an [Address].
|
/// Make a [Point] from an [Address].
|
||||||
pub fn from_address(
|
pub fn from_address(
|
||||||
@ -43,9 +43,7 @@ fn _resolve_origin<'a, Ctx: Context<'a>, F: ParseFactory<'a, Ctx>>(
|
|||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
impl<'a, Ctx: Context<'a>, F: ParseFactory<'a, Ctx>> Origin<'a, Ctx>
|
impl<'a, Ctx: Context<'a>, F: FactoryBase<'a, Ctx>> Origin<'a, Ctx> for ResolverOrigin<'a, Ctx, F> {
|
||||||
for ResolverOrigin<'a, Ctx, F>
|
|
||||||
{
|
|
||||||
type Mtbl = F::Mtbl;
|
type Mtbl = F::Mtbl;
|
||||||
|
|
||||||
fn factory(&self) -> OFctr<'a, Ctx, Self> {
|
fn factory(&self) -> OFctr<'a, Ctx, Self> {
|
||||||
@ -54,7 +52,7 @@ impl<'a, Ctx: Context<'a>, F: ParseFactory<'a, Ctx>> Origin<'a, Ctx>
|
|||||||
|
|
||||||
fn resolve(self: Rc<Self>) -> Resolution<'a, Ctx, Self::Mtbl>
|
fn resolve(self: Rc<Self>) -> Resolution<'a, Ctx, Self::Mtbl>
|
||||||
where
|
where
|
||||||
OFctr<'a, Ctx, Self>: ParseFactory<'a, Ctx>,
|
F: ParseFactory<'a, Ctx>,
|
||||||
{
|
{
|
||||||
_resolve_origin(self)
|
_resolve_origin(self)
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user