diff --git a/minidom/CHANGELOG.md b/minidom/CHANGELOG.md index 28f185f28da77b61367f515b623f8015748b2b23..7ee46d81eb833ce7b34c82cb3127c582ac028dce 100644 --- a/minidom/CHANGELOG.md +++ b/minidom/CHANGELOG.md @@ -67,12 +67,12 @@ Version 0.12.1, released 2021-01-13, yanked: Version 0.12, released 2020-02-15: * Breaking - * `Element.write_to` doesn't prepand xml prelude anymore. Use `write_to_decl` when necessary. + * `Element.write_to` doesn't prepend xml prelude anymore. Use `write_to_decl` when necessary. * PartialEq implementation for Element and Node have been changed to ensure namespaces match even if the objects are not structurally equivalent in Rust. * Changes - * Explicitely focus on XMPP. Some features will eventually be removed from + * Explicitly focus on XMPP. Some features will eventually be removed from the project to comply with this. * Update edition to 2018 * Add NSChoice enum to allow comparing NSs differently diff --git a/parsers/ChangeLog b/parsers/ChangeLog index aaf195f4cbcb5f1c96488cb87c19260c615cc912..08c45b6c6edbea5607b35eb55f15942e0662278b 100644 --- a/parsers/ChangeLog +++ b/parsers/ChangeLog @@ -111,7 +111,7 @@ Version 0.22.0: - Verifying HTTP Requests via XMPP (XEP-0070) * Improvements: - Add support for undocumented ` in XEP-0198 feature - advertisment, for compatibility with servers in the wild. + advertisement, for compatibility with servers in the wild. - Add support application-specific error conditions in XEP-0198 - Keep unsupported vCard elements as `minidom::Element`, so that they get serialized back instead of being dropped. We now also test for diff --git a/parsers/src/iq.rs b/parsers/src/iq.rs index 9b35e87879b33702e54978d02c80e75205548262..5a52862393d8bdb951c6990e4e52b4fd643ba40f 100644 --- a/parsers/src/iq.rs +++ b/parsers/src/iq.rs @@ -25,7 +25,7 @@ pub struct IqHeader { /// The sender JID. pub from: Option, - /// The reciepient JID. + /// The recipient JID. pub to: Option, /// The stanza's ID. diff --git a/parsers/src/sm.rs b/parsers/src/sm.rs index 955ff5eb1dbe51e7782e7df2b96bfd83593e453a..0b7d0704d9efa4aee49901cccaf3dee4973665f5 100644 --- a/parsers/src/sm.rs +++ b/parsers/src/sm.rs @@ -188,7 +188,7 @@ pub enum Nonza { #[xml(transparent)] Resume(Resume), - /// Sucessful SM resumption response + /// Successful SM resumption response #[xml(transparent)] Resumed(Resumed), diff --git a/parsers/src/stream_limits.rs b/parsers/src/stream_limits.rs index 4093242b643b1db25dc8482e976ce448ae5b2fd8..aa6ed4b604b23e98a6d9de9aef29c501114b1444 100644 --- a/parsers/src/stream_limits.rs +++ b/parsers/src/stream_limits.rs @@ -19,7 +19,7 @@ pub struct Limits { #[xml(child(default))] pub max_bytes: Option, - /// Number of seconds without any traffic from the iniating entity after which the server may + /// Number of seconds without any traffic from the initiating entity after which the server may /// consider the stream idle, and either perform liveness checks or terminate the stream. // TODO: Replace that with a direct u32 once xso supports that. #[xml(child(default))] @@ -36,7 +36,7 @@ pub struct MaxBytes { pub value: NonZeroU32, } -/// Number of seconds without any traffic from the iniating entity after which the server may +/// Number of seconds without any traffic from the initiating entity after which the server may /// consider the stream idle, and either perform liveness checks or terminate the stream. #[derive(FromXml, AsXml, Debug, Clone, PartialEq)] #[xml(namespace = ns::STREAM_LIMITS, name = "idle-seconds")] diff --git a/parsers/src/util/macro_tests.rs b/parsers/src/util/macro_tests.rs index a79ca718e9100c59797f6199ff0b76e204a49169..b01218075fbeaf7a8b0a297900da28466087dfd9 100644 --- a/parsers/src/util/macro_tests.rs +++ b/parsers/src/util/macro_tests.rs @@ -40,7 +40,7 @@ use self::helpers::{parse_str, roundtrip_full}; use xso::exports::rxml; use xso::{AsXml, FromXml, PrintRawXml}; -// these are adverserial local names in order to trigger any issues with +// these are adversarial local names in order to trigger any issues with // unqualified names in the macro expansions. #[allow(dead_code, non_snake_case)] fn Err() {} diff --git a/tokio-xmpp/src/client/mod.rs b/tokio-xmpp/src/client/mod.rs index 56c01dab039ee75af6dc99f3d04d185fbc7ff4a0..18922a347fb75bf18138b8499513f2c54bc3a018 100644 --- a/tokio-xmpp/src/client/mod.rs +++ b/tokio-xmpp/src/client/mod.rs @@ -136,7 +136,7 @@ impl Client { impl Client { /// Start a new XMPP client using DirectTLS transport and autoreconnect /// - /// It use RFC 7590 _xmpps-client._tcp loopup for connector details. + /// It use RFC 7590 _xmpps-client._tcp lookup for connector details. pub fn new_direct_tls, P: Into>(jid: J, password: P) -> Self { let jid_ref = jid.into(); let dns_config = DnsConfig::srv_xmpps(jid_ref.domain().as_ref()); diff --git a/tokio-xmpp/src/stanzastream/mod.rs b/tokio-xmpp/src/stanzastream/mod.rs index e9d10524deba05d98bc914579c4c7fc631d4b93d..8eab86c59281a38aef58b424d3f75154ca7cef21 100644 --- a/tokio-xmpp/src/stanzastream/mod.rs +++ b/tokio-xmpp/src/stanzastream/mod.rs @@ -103,7 +103,7 @@ impl StanzaStream { /// `jid` and `password` must be the user account's credentials. `jid` may /// either be a bare JID (to let the server choose a resource) or a full /// JID (to request a specific resource from the server, with no guarantee - /// of succcess). + /// of success). /// /// `timeouts` controls the responsiveness to connection interruptions /// on the underlying transports. Please see the [`Timeouts`] struct's diff --git a/tokio-xmpp/src/stanzastream/negotiation.rs b/tokio-xmpp/src/stanzastream/negotiation.rs index 549a8128f5a422f292378c2ef78aed37b49a8e5a..f80086c32f029b0b7a8aa861c734086ce3769225 100644 --- a/tokio-xmpp/src/stanzastream/negotiation.rs +++ b/tokio-xmpp/src/stanzastream/negotiation.rs @@ -291,7 +291,7 @@ impl NegotiationState { })) } - // Stream footer during negotation is really weird. + // Stream footer during negotiation is really weird. // We kill the stream immediately with an error // (but allow preservation of the SM state). Err(ReadError::StreamFooterReceived) => { @@ -299,7 +299,7 @@ impl NegotiationState { sm_state: None, error: io::Error::new( io::ErrorKind::InvalidData, - "stream footer received during negotation", + "stream footer received during negotiation", ), })) } @@ -516,7 +516,7 @@ impl NegotiationState { })) } - // Stream footer during negotation is really weird. + // Stream footer during negotiation is really weird. // We kill the stream immediately with an error // (but allow preservation of the SM state). Err(ReadError::StreamFooterReceived) => { @@ -524,7 +524,7 @@ impl NegotiationState { sm_state: sm_state.take(), error: io::Error::new( io::ErrorKind::InvalidData, - "stream footer received during negotation", + "stream footer received during negotiation", ), })) } diff --git a/tokio-xmpp/src/stanzastream/queue.rs b/tokio-xmpp/src/stanzastream/queue.rs index ba2d9896dc4953defb28b82a533001f701731ca8..7ba22276db9882a1e7dbd415193f572241d1d665 100644 --- a/tokio-xmpp/src/stanzastream/queue.rs +++ b/tokio-xmpp/src/stanzastream/queue.rs @@ -74,7 +74,7 @@ pub enum StanzaStage { /// means. /// /// **Note:** This state is only ever reached on streams where XEP-0198 - /// was succesfully negotiated. + /// was successfully negotiated. Acked, /// Stanza transmission or serialisation failed. diff --git a/tokio-xmpp/src/stanzastream/worker.rs b/tokio-xmpp/src/stanzastream/worker.rs index 79892d8d588538c190caa8d739fa5e76bd3868e2..3a1eec7efe04329d623b5c5dd5f902e92c3dc33d 100644 --- a/tokio-xmpp/src/stanzastream/worker.rs +++ b/tokio-xmpp/src/stanzastream/worker.rs @@ -84,7 +84,7 @@ pub(super) enum WorkerEvent { /// Soft timeout noted by the underlying XmppStream. SoftTimeout, - /// Stream disonnected. + /// Stream disconnected. Disconnected { /// Slot for a new connection. slot: oneshot::Sender, @@ -106,7 +106,7 @@ enum WorkerStream { /// Receiver slot for the next connection. slot: oneshot::Receiver, - /// Straem management state from a previous connection. + /// Stream management state from a previous connection. sm_state: Option, }, @@ -245,7 +245,7 @@ impl WorkerStream { Some(ConnectedEvent::LocalShutdownRequested) => { // We don't switch to "terminated" here, but we - // return "end of stream" nontheless. + // return "end of stream" nonetheless. return Poll::Ready(None); } } diff --git a/xso/ChangeLog b/xso/ChangeLog index 3ec3023e6fdc2d10c50dc2aa714ad8f8af3b1e93..f5f69341a54c8b178edb6d320ab785221a08a0b3 100644 --- a/xso/ChangeLog +++ b/xso/ChangeLog @@ -63,7 +63,7 @@ Version 0.2.0, released 2025-09-17: library's `Display` and `FromStr` traits. - `AsXmlDyn`, a dyn-compatible variant of `AsXml` (!573). - `FromXml::xml_name_matcher()` and related types, which allow `FromXml` - implementors to provide cachable hints to callers about which XML + implementors to provide cacheable hints to callers about which XML elements are valid candidates for parsing (!573). - `Xso`, a Box-like struct which can hold a dynamically-typed XSO, alongside related traits and (declarative) macros (!573). diff --git a/xso/src/dynxso.rs b/xso/src/dynxso.rs index 63f54df8b5cd28965c52e09d6f7cf812e699951b..88dde07e0cb4ea212400489385cc645f268c9fe9 100644 --- a/xso/src/dynxso.rs +++ b/xso/src/dynxso.rs @@ -274,7 +274,7 @@ impl fmt::Debug for BuilderRegistryEntry { /// assumptions are made: /// /// - Types are added only once at startup and a matching -/// [`reserve`][`Self::reserve`] call is made beforehands. +/// [`reserve`][`Self::reserve`] call is made beforehand. /// - There are many different types. /// - [`FromXml::xml_name_matcher`] returns a different value for most of the /// types which are added.