Fix all typos using the typos tool
See https://github.com/crate-ci/typos
This commit is contained in:
parent
b014316206
commit
5ed958582b
13 changed files with 20 additions and 20 deletions
|
|
@ -67,12 +67,12 @@ Version 0.12.1, released 2021-01-13, yanked:
|
||||||
|
|
||||||
Version 0.12, released 2020-02-15:
|
Version 0.12, released 2020-02-15:
|
||||||
* Breaking
|
* 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
|
* PartialEq implementation for Element and Node have been changed to
|
||||||
ensure namespaces match even if the objects are not structurally
|
ensure namespaces match even if the objects are not structurally
|
||||||
equivalent in Rust.
|
equivalent in Rust.
|
||||||
* Changes
|
* 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.
|
the project to comply with this.
|
||||||
* Update edition to 2018
|
* Update edition to 2018
|
||||||
* Add NSChoice enum to allow comparing NSs differently
|
* Add NSChoice enum to allow comparing NSs differently
|
||||||
|
|
|
||||||
|
|
@ -111,7 +111,7 @@ Version 0.22.0:
|
||||||
- Verifying HTTP Requests via XMPP (XEP-0070)
|
- Verifying HTTP Requests via XMPP (XEP-0070)
|
||||||
* Improvements:
|
* Improvements:
|
||||||
- Add support for undocumented `<optional/> in XEP-0198 feature
|
- 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
|
- Add support application-specific error conditions in XEP-0198
|
||||||
- Keep unsupported vCard elements as `minidom::Element`, so that they
|
- Keep unsupported vCard elements as `minidom::Element`, so that they
|
||||||
get serialized back instead of being dropped. We now also test for
|
get serialized back instead of being dropped. We now also test for
|
||||||
|
|
|
||||||
|
|
@ -25,7 +25,7 @@ pub struct IqHeader {
|
||||||
/// The sender JID.
|
/// The sender JID.
|
||||||
pub from: Option<Jid>,
|
pub from: Option<Jid>,
|
||||||
|
|
||||||
/// The reciepient JID.
|
/// The recipient JID.
|
||||||
pub to: Option<Jid>,
|
pub to: Option<Jid>,
|
||||||
|
|
||||||
/// The stanza's ID.
|
/// The stanza's ID.
|
||||||
|
|
|
||||||
|
|
@ -188,7 +188,7 @@ pub enum Nonza {
|
||||||
#[xml(transparent)]
|
#[xml(transparent)]
|
||||||
Resume(Resume),
|
Resume(Resume),
|
||||||
|
|
||||||
/// Sucessful SM resumption response
|
/// Successful SM resumption response
|
||||||
#[xml(transparent)]
|
#[xml(transparent)]
|
||||||
Resumed(Resumed),
|
Resumed(Resumed),
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -19,7 +19,7 @@ pub struct Limits {
|
||||||
#[xml(child(default))]
|
#[xml(child(default))]
|
||||||
pub max_bytes: Option<MaxBytes>,
|
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.
|
/// consider the stream idle, and either perform liveness checks or terminate the stream.
|
||||||
// TODO: Replace that with a direct u32 once xso supports that.
|
// TODO: Replace that with a direct u32 once xso supports that.
|
||||||
#[xml(child(default))]
|
#[xml(child(default))]
|
||||||
|
|
@ -36,7 +36,7 @@ pub struct MaxBytes {
|
||||||
pub value: NonZeroU32,
|
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.
|
/// consider the stream idle, and either perform liveness checks or terminate the stream.
|
||||||
#[derive(FromXml, AsXml, Debug, Clone, PartialEq)]
|
#[derive(FromXml, AsXml, Debug, Clone, PartialEq)]
|
||||||
#[xml(namespace = ns::STREAM_LIMITS, name = "idle-seconds")]
|
#[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::exports::rxml;
|
||||||
use xso::{AsXml, FromXml, PrintRawXml};
|
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.
|
// unqualified names in the macro expansions.
|
||||||
#[allow(dead_code, non_snake_case)]
|
#[allow(dead_code, non_snake_case)]
|
||||||
fn Err() {}
|
fn Err() {}
|
||||||
|
|
|
||||||
|
|
@ -136,7 +136,7 @@ impl Client {
|
||||||
impl Client {
|
impl Client {
|
||||||
/// Start a new XMPP client using DirectTLS transport and autoreconnect
|
/// 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 {
|
pub fn new_direct_tls<J: Into<Jid>, P: Into<String>>(jid: J, password: P) -> Self {
|
||||||
let jid_ref = jid.into();
|
let jid_ref = jid.into();
|
||||||
let dns_config = DnsConfig::srv_xmpps(jid_ref.domain().as_ref());
|
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
|
/// `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
|
/// 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
|
/// JID (to request a specific resource from the server, with no guarantee
|
||||||
/// of succcess).
|
/// of success).
|
||||||
///
|
///
|
||||||
/// `timeouts` controls the responsiveness to connection interruptions
|
/// `timeouts` controls the responsiveness to connection interruptions
|
||||||
/// on the underlying transports. Please see the [`Timeouts`] struct's
|
/// 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
|
// We kill the stream immediately with an error
|
||||||
// (but allow preservation of the SM state).
|
// (but allow preservation of the SM state).
|
||||||
Err(ReadError::StreamFooterReceived) => {
|
Err(ReadError::StreamFooterReceived) => {
|
||||||
|
|
@ -299,7 +299,7 @@ impl NegotiationState {
|
||||||
sm_state: None,
|
sm_state: None,
|
||||||
error: io::Error::new(
|
error: io::Error::new(
|
||||||
io::ErrorKind::InvalidData,
|
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
|
// We kill the stream immediately with an error
|
||||||
// (but allow preservation of the SM state).
|
// (but allow preservation of the SM state).
|
||||||
Err(ReadError::StreamFooterReceived) => {
|
Err(ReadError::StreamFooterReceived) => {
|
||||||
|
|
@ -524,7 +524,7 @@ impl NegotiationState {
|
||||||
sm_state: sm_state.take(),
|
sm_state: sm_state.take(),
|
||||||
error: io::Error::new(
|
error: io::Error::new(
|
||||||
io::ErrorKind::InvalidData,
|
io::ErrorKind::InvalidData,
|
||||||
"stream footer received during negotation",
|
"stream footer received during negotiation",
|
||||||
),
|
),
|
||||||
}))
|
}))
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -74,7 +74,7 @@ pub enum StanzaStage {
|
||||||
/// means.
|
/// means.
|
||||||
///
|
///
|
||||||
/// **Note:** This state is only ever reached on streams where XEP-0198
|
/// **Note:** This state is only ever reached on streams where XEP-0198
|
||||||
/// was succesfully negotiated.
|
/// was successfully negotiated.
|
||||||
Acked,
|
Acked,
|
||||||
|
|
||||||
/// Stanza transmission or serialisation failed.
|
/// Stanza transmission or serialisation failed.
|
||||||
|
|
|
||||||
|
|
@ -84,7 +84,7 @@ pub(super) enum WorkerEvent {
|
||||||
/// Soft timeout noted by the underlying XmppStream.
|
/// Soft timeout noted by the underlying XmppStream.
|
||||||
SoftTimeout,
|
SoftTimeout,
|
||||||
|
|
||||||
/// Stream disonnected.
|
/// Stream disconnected.
|
||||||
Disconnected {
|
Disconnected {
|
||||||
/// Slot for a new connection.
|
/// Slot for a new connection.
|
||||||
slot: oneshot::Sender<Connection>,
|
slot: oneshot::Sender<Connection>,
|
||||||
|
|
@ -106,7 +106,7 @@ enum WorkerStream {
|
||||||
/// Receiver slot for the next connection.
|
/// Receiver slot for the next connection.
|
||||||
slot: oneshot::Receiver<Connection>,
|
slot: oneshot::Receiver<Connection>,
|
||||||
|
|
||||||
/// Straem management state from a previous connection.
|
/// Stream management state from a previous connection.
|
||||||
sm_state: Option<SmState>,
|
sm_state: Option<SmState>,
|
||||||
},
|
},
|
||||||
|
|
||||||
|
|
@ -245,7 +245,7 @@ impl WorkerStream {
|
||||||
|
|
||||||
Some(ConnectedEvent::LocalShutdownRequested) => {
|
Some(ConnectedEvent::LocalShutdownRequested) => {
|
||||||
// We don't switch to "terminated" here, but we
|
// We don't switch to "terminated" here, but we
|
||||||
// return "end of stream" nontheless.
|
// return "end of stream" nonetheless.
|
||||||
return Poll::Ready(None);
|
return Poll::Ready(None);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -63,7 +63,7 @@ Version 0.2.0, released 2025-09-17:
|
||||||
library's `Display` and `FromStr` traits.
|
library's `Display` and `FromStr` traits.
|
||||||
- `AsXmlDyn`, a dyn-compatible variant of `AsXml` (!573).
|
- `AsXmlDyn`, a dyn-compatible variant of `AsXml` (!573).
|
||||||
- `FromXml::xml_name_matcher()` and related types, which allow `FromXml`
|
- `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).
|
elements are valid candidates for parsing (!573).
|
||||||
- `Xso<dyn Trait>`, a Box-like struct which can hold a dynamically-typed
|
- `Xso<dyn Trait>`, a Box-like struct which can hold a dynamically-typed
|
||||||
XSO, alongside related traits and (declarative) macros (!573).
|
XSO, alongside related traits and (declarative) macros (!573).
|
||||||
|
|
|
||||||
|
|
@ -274,7 +274,7 @@ impl<T: ?Sized> fmt::Debug for BuilderRegistryEntry<T> {
|
||||||
/// assumptions are made:
|
/// assumptions are made:
|
||||||
///
|
///
|
||||||
/// - Types are added only once at startup and a matching
|
/// - 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.
|
/// - There are many different types.
|
||||||
/// - [`FromXml::xml_name_matcher`] returns a different value for most of the
|
/// - [`FromXml::xml_name_matcher`] returns a different value for most of the
|
||||||
/// types which are added.
|
/// types which are added.
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue