aboutsummaryrefslogtreecommitdiff
path: root/src/message.rs
diff options
context:
space:
mode:
authorAlex Auvolat <alex@adnab.me>2023-01-31 23:57:33 +0100
committerAlex Auvolat <alex@adnab.me>2023-01-31 23:57:33 +0100
commit6df6411b7234c36555e5b38aa7084f641354cce2 (patch)
tree47c439bcc32ea818fcf225c5d63c29ab6fba47af /src/message.rs
parente4c0be848d50c0480fc54c69074bc8b3f88d83bf (diff)
downloadnetapp-6df6411b7234c36555e5b38aa7084f641354cce2.tar.gz
netapp-6df6411b7234c36555e5b38aa7084f641354cce2.zip
fix clippy
Diffstat (limited to 'src/message.rs')
-rw-r--r--src/message.rs10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/message.rs b/src/message.rs
index 9cc1a3e..cd40ea7 100644
--- a/src/message.rs
+++ b/src/message.rs
@@ -54,11 +54,11 @@ pub struct OrderTagStream(u64);
impl OrderTag {
/// Create a new stream from which to generate order tags. Example:
- /// ```ignore
- /// let stream = OrderTag.stream();
- /// let tag_1 = stream.order(1);
- /// let tag_2 = stream.order(2);
- /// ```
+ /// ```ignore
+ /// let stream = OrderTag.stream();
+ /// let tag_1 = stream.order(1);
+ /// let tag_2 = stream.order(2);
+ /// ```
pub fn stream() -> OrderTagStream {
OrderTagStream(thread_rng().gen())
}