From 1293e9a3eb490b4f11078fb9907de1b0b7bf2c96 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jonas=20Sch=C3=A4fer?= Date: Tue, 16 Apr 2024 18:19:47 +0200 Subject: [PATCH] jid: fix incorrect type on Jid::Full This does not matter much because users need to replace usages of these anyway, but it's better to have it right here to not cause additional confusion. --- jid/src/lib.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/jid/src/lib.rs b/jid/src/lib.rs index 1db120a5..15d22229 100644 --- a/jid/src/lib.rs +++ b/jid/src/lib.rs @@ -410,7 +410,7 @@ impl Jid { since = "0.11.0", note = "use Jid::from (for construction of Jid values) or Jid::try_into_full/Jid::try_as_full (for match blocks) instead" )] - pub fn Full(other: BareJid) -> Self { + pub fn Full(other: FullJid) -> Self { Self::from(other) } }