Detailed changes
@@ -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
@@ -111,7 +111,7 @@ Version 0.22.0:
- Verifying HTTP Requests via XMPP (XEP-0070)
* Improvements:
- Add support for undocumented `<optional/> 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
@@ -25,7 +25,7 @@ pub struct IqHeader {
/// The sender JID.
pub from: Option<Jid>,
- /// The reciepient JID.
+ /// The recipient JID.
pub to: Option<Jid>,
/// The stanza's ID.
@@ -188,7 +188,7 @@ pub enum Nonza {
#[xml(transparent)]
Resume(Resume),
- ///Β Sucessful SM resumption response
+ ///Β Successful SM resumption response
#[xml(transparent)]
Resumed(Resumed),
@@ -19,7 +19,7 @@ pub struct Limits {
#[xml(child(default))]
pub max_bytes: Option<MaxBytes>,
- /// 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")]
@@ -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() {}
@@ -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<J: Into<Jid>, P: Into<String>>(jid: J, password: P) -> Self {
let jid_ref = jid.into();
let dns_config = DnsConfig::srv_xmpps(jid_ref.domain().as_ref());
@@ -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
@@ -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",
),
}))
}
@@ -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.
@@ -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<Connection>,
@@ -106,7 +106,7 @@ enum WorkerStream {
/// Receiver slot for the next connection.
slot: oneshot::Receiver<Connection>,
- /// Straem management state from a previous connection.
+ /// Stream management state from a previous connection.
sm_state: Option<SmState>,
},
@@ -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);
}
}
@@ -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<dyn Trait>`, a Box-like struct which can hold a dynamically-typed
XSO, alongside related traits and (declarative) macros (!573).
@@ -274,7 +274,7 @@ impl<T: ?Sized> fmt::Debug for BuilderRegistryEntry<T> {
/// 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.