From 09cd01424aa621656ee473ecf39e8b10d5aad681 Mon Sep 17 00:00:00 2001 From: Link Mauve Date: Thu, 26 Feb 2026 16:56:33 +0100 Subject: [PATCH] jid: Bump to edition 2024 --- jid/Cargo.toml | 2 +- jid/src/lib.rs | 4 ++-- jid/src/parts.rs | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/jid/Cargo.toml b/jid/Cargo.toml index f8144208..245d9597 100644 --- a/jid/Cargo.toml +++ b/jid/Cargo.toml @@ -13,7 +13,7 @@ documentation = "https://docs.rs/jid" readme = "README.md" keywords = ["xmpp", "jid"] license = "MPL-2.0" -edition = "2021" +edition = "2024" [badges] gitlab = { repository = "xmpp-rs/xmpp-rs" } diff --git a/jid/src/lib.rs b/jid/src/lib.rs index 6ec21225..be773f62 100644 --- a/jid/src/lib.rs +++ b/jid/src/lib.rs @@ -57,12 +57,12 @@ use idna::uts46::{AsciiDenyList, DnsLength, Hyphens, Uts46}; use stringprep::{nameprep, nodeprep, resourceprep}; #[cfg(feature = "serde")] -use serde::{de, Deserialize, Deserializer, Serialize, Serializer}; +use serde::{Deserialize, Deserializer, Serialize, Serializer, de}; #[cfg(feature = "quote")] use proc_macro2::TokenStream; #[cfg(feature = "quote")] -use quote::{quote, ToTokens}; +use quote::{ToTokens, quote}; #[cfg(feature = "minidom")] use minidom::{IntoAttributeValue, Node}; diff --git a/jid/src/parts.rs b/jid/src/parts.rs index 015ee68f..cb1a4baa 100644 --- a/jid/src/parts.rs +++ b/jid/src/parts.rs @@ -9,8 +9,8 @@ use core::str::FromStr; #[cfg(feature = "serde")] use serde::{Deserialize, Serialize}; -use crate::{domain_check, node_check, resource_check}; use crate::{BareJid, Error, Jid}; +use crate::{domain_check, node_check, resource_check}; macro_rules! def_part_parse_doc { ($name:ident, $other:ident, $more:expr) => {