Skip to content

Commit 817b373

Browse files
authored
Merge pull request #273 from antonilol/clippy-warnings-docs
fix function docs (clippy warnings)
2 parents 52be23f + 15613e9 commit 817b373

File tree

5 files changed

+25
-25
lines changed

5 files changed

+25
-25
lines changed

heed/src/cursor.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -260,7 +260,7 @@ impl<'txn> RwCursor<'txn> {
260260
/// while modifying it.
261261
///
262262
/// > [Values returned from the database are valid only until a subsequent update operation,
263-
/// or the end of the transaction.](http://www.lmdb.tech/doc/group__mdb.html#structMDB__val).
263+
/// > or the end of the transaction.](http://www.lmdb.tech/doc/group__mdb.html#structMDB__val)
264264
///
265265
/// [undefined behavior]: https://doc.rust-lang.org/reference/behavior-considered-undefined.html
266266
pub unsafe fn del_current(&mut self) -> Result<bool> {
@@ -294,7 +294,7 @@ impl<'txn> RwCursor<'txn> {
294294
/// version of them (e.g. `&str` into `String`).
295295
///
296296
/// > [Values returned from the database are valid only until a subsequent update operation,
297-
/// or the end of the transaction.](http://www.lmdb.tech/doc/group__mdb.html#structMDB__val).
297+
/// > or the end of the transaction.](http://www.lmdb.tech/doc/group__mdb.html#structMDB__val)
298298
///
299299
/// [undefined behavior]: https://doc.rust-lang.org/reference/behavior-considered-undefined.html
300300
pub unsafe fn put_current(&mut self, key: &[u8], data: &[u8]) -> Result<bool> {
@@ -377,7 +377,7 @@ impl<'txn> RwCursor<'txn> {
377377
/// version of them (e.g. `&str` into `String`).
378378
///
379379
/// > [Values returned from the database are valid only until a subsequent update operation,
380-
/// or the end of the transaction.](http://www.lmdb.tech/doc/group__mdb.html#structMDB__val).
380+
/// > or the end of the transaction.](http://www.lmdb.tech/doc/group__mdb.html#structMDB__val)
381381
///
382382
/// [undefined behavior]: https://doc.rust-lang.org/reference/behavior-considered-undefined.html
383383
pub unsafe fn put_current_with_flags(

heed/src/env.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -765,9 +765,9 @@ impl Env {
765765
///
766766
/// * [`crate::MdbError::Panic`]: A fatal error occurred earlier, and the environment must be shut down
767767
/// * [`crate::MdbError::MapResized`]: Another process wrote data beyond this [`Env`] mapsize and this env
768-
/// map must be resized
768+
/// map must be resized
769769
/// * [`crate::MdbError::ReadersFull`]: a read-only transaction was requested, and the reader lock table is
770-
/// full
770+
/// full
771771
pub fn read_txn(&self) -> Result<RoTxn> {
772772
RoTxn::new(self)
773773
}
@@ -794,9 +794,9 @@ impl Env {
794794
///
795795
/// * [`crate::MdbError::Panic`]: A fatal error occurred earlier, and the environment must be shut down
796796
/// * [`crate::MdbError::MapResized`]: Another process wrote data beyond this [`Env`] mapsize and this env
797-
/// map must be resized
797+
/// map must be resized
798798
/// * [`crate::MdbError::ReadersFull`]: a read-only transaction was requested, and the reader lock table is
799-
/// full
799+
/// full
800800
pub fn static_read_txn(self) -> Result<RoTxn<'static>> {
801801
RoTxn::static_read_txn(self)
802802
}

heed/src/iterator/iter.rs

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -233,7 +233,7 @@ impl<'txn, KC, DC, IM> RwIter<'txn, KC, DC, IM> {
233233
/// while modifying it.
234234
///
235235
/// > [Values returned from the database are valid only until a subsequent update operation,
236-
/// or the end of the transaction.](http://www.lmdb.tech/doc/group__mdb.html#structMDB__val).
236+
/// > or the end of the transaction.](http://www.lmdb.tech/doc/group__mdb.html#structMDB__val)
237237
///
238238
/// [undefined behavior]: https://doc.rust-lang.org/reference/behavior-considered-undefined.html
239239
pub unsafe fn del_current(&mut self) -> Result<bool> {
@@ -260,7 +260,7 @@ impl<'txn, KC, DC, IM> RwIter<'txn, KC, DC, IM> {
260260
/// version of them (e.g. `&str` into `String`).
261261
///
262262
/// > [Values returned from the database are valid only until a subsequent update operation,
263-
/// or the end of the transaction.](http://www.lmdb.tech/doc/group__mdb.html#structMDB__val).
263+
/// > or the end of the transaction.](http://www.lmdb.tech/doc/group__mdb.html#structMDB__val)
264264
///
265265
/// [undefined behavior]: https://doc.rust-lang.org/reference/behavior-considered-undefined.html
266266
pub unsafe fn put_current<'a>(
@@ -319,7 +319,7 @@ impl<'txn, KC, DC, IM> RwIter<'txn, KC, DC, IM> {
319319
/// version of them (e.g. `&str` into `String`).
320320
///
321321
/// > [Values returned from the database are valid only until a subsequent update operation,
322-
/// or the end of the transaction.](http://www.lmdb.tech/doc/group__mdb.html#structMDB__val).
322+
/// > or the end of the transaction.](http://www.lmdb.tech/doc/group__mdb.html#structMDB__val)
323323
///
324324
/// [undefined behavior]: https://doc.rust-lang.org/reference/behavior-considered-undefined.html
325325
pub unsafe fn put_current_with_options<'a, NDC>(
@@ -582,7 +582,7 @@ impl<'txn, KC, DC, IM> RwRevIter<'txn, KC, DC, IM> {
582582
/// while modifying it.
583583
///
584584
/// > [Values returned from the database are valid only until a subsequent update operation,
585-
/// or the end of the transaction.](http://www.lmdb.tech/doc/group__mdb.html#structMDB__val).
585+
/// > or the end of the transaction.](http://www.lmdb.tech/doc/group__mdb.html#structMDB__val)
586586
///
587587
/// [undefined behavior]: https://doc.rust-lang.org/reference/behavior-considered-undefined.html
588588
pub unsafe fn del_current(&mut self) -> Result<bool> {
@@ -609,7 +609,7 @@ impl<'txn, KC, DC, IM> RwRevIter<'txn, KC, DC, IM> {
609609
/// version of them (e.g. `&str` into `String`).
610610
///
611611
/// > [Values returned from the database are valid only until a subsequent update operation,
612-
/// or the end of the transaction.](http://www.lmdb.tech/doc/group__mdb.html#structMDB__val).
612+
/// > or the end of the transaction.](http://www.lmdb.tech/doc/group__mdb.html#structMDB__val)
613613
///
614614
/// [undefined behavior]: https://doc.rust-lang.org/reference/behavior-considered-undefined.html
615615
pub unsafe fn put_current<'a>(
@@ -668,7 +668,7 @@ impl<'txn, KC, DC, IM> RwRevIter<'txn, KC, DC, IM> {
668668
/// version of them (e.g. `&str` into `String`).
669669
///
670670
/// > [Values returned from the database are valid only until a subsequent update operation,
671-
/// or the end of the transaction.](http://www.lmdb.tech/doc/group__mdb.html#structMDB__val).
671+
/// > or the end of the transaction.](http://www.lmdb.tech/doc/group__mdb.html#structMDB__val)
672672
///
673673
/// [undefined behavior]: https://doc.rust-lang.org/reference/behavior-considered-undefined.html
674674
pub unsafe fn put_current_with_options<'a, NDC>(

heed/src/iterator/prefix.rs

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -226,7 +226,7 @@ impl<'txn, KC, DC, C, IM> RwPrefix<'txn, KC, DC, C, IM> {
226226
/// while modifying it.
227227
///
228228
/// > [Values returned from the database are valid only until a subsequent update operation,
229-
/// or the end of the transaction.](http://www.lmdb.tech/doc/group__mdb.html#structMDB__val).
229+
/// > or the end of the transaction.](http://www.lmdb.tech/doc/group__mdb.html#structMDB__val)
230230
///
231231
/// [undefined behavior]: https://doc.rust-lang.org/reference/behavior-considered-undefined.html
232232
pub unsafe fn del_current(&mut self) -> Result<bool> {
@@ -253,7 +253,7 @@ impl<'txn, KC, DC, C, IM> RwPrefix<'txn, KC, DC, C, IM> {
253253
/// version of them (e.g. `&str` into `String`).
254254
///
255255
/// > [Values returned from the database are valid only until a subsequent update operation,
256-
/// or the end of the transaction.](http://www.lmdb.tech/doc/group__mdb.html#structMDB__val).
256+
/// > or the end of the transaction.](http://www.lmdb.tech/doc/group__mdb.html#structMDB__val)
257257
///
258258
/// [undefined behavior]: https://doc.rust-lang.org/reference/behavior-considered-undefined.html
259259
pub unsafe fn put_current<'a>(
@@ -312,7 +312,7 @@ impl<'txn, KC, DC, C, IM> RwPrefix<'txn, KC, DC, C, IM> {
312312
/// version of them (e.g. `&str` into `String`).
313313
///
314314
/// > [Values returned from the database are valid only until a subsequent update operation,
315-
/// or the end of the transaction.](http://www.lmdb.tech/doc/group__mdb.html#structMDB__val).
315+
/// > or the end of the transaction.](http://www.lmdb.tech/doc/group__mdb.html#structMDB__val)
316316
///
317317
/// [undefined behavior]: https://doc.rust-lang.org/reference/behavior-considered-undefined.html
318318
pub unsafe fn put_current_with_options<'a, NDC>(
@@ -616,7 +616,7 @@ impl<'txn, KC, DC, C, IM> RwRevPrefix<'txn, KC, DC, C, IM> {
616616
/// while modifying it.
617617
///
618618
/// > [Values returned from the database are valid only until a subsequent update operation,
619-
/// or the end of the transaction.](http://www.lmdb.tech/doc/group__mdb.html#structMDB__val).
619+
/// > or the end of the transaction.](http://www.lmdb.tech/doc/group__mdb.html#structMDB__val)
620620
///
621621
/// [undefined behavior]: https://doc.rust-lang.org/reference/behavior-considered-undefined.html
622622
pub unsafe fn del_current(&mut self) -> Result<bool> {
@@ -643,7 +643,7 @@ impl<'txn, KC, DC, C, IM> RwRevPrefix<'txn, KC, DC, C, IM> {
643643
/// version of them (e.g. `&str` into `String`).
644644
///
645645
/// > [Values returned from the database are valid only until a subsequent update operation,
646-
/// or the end of the transaction.](http://www.lmdb.tech/doc/group__mdb.html#structMDB__val).
646+
/// > or the end of the transaction.](http://www.lmdb.tech/doc/group__mdb.html#structMDB__val)
647647
///
648648
/// [undefined behavior]: https://doc.rust-lang.org/reference/behavior-considered-undefined.html
649649
pub unsafe fn put_current<'a>(
@@ -702,7 +702,7 @@ impl<'txn, KC, DC, C, IM> RwRevPrefix<'txn, KC, DC, C, IM> {
702702
/// version of them (e.g. `&str` into `String`).
703703
///
704704
/// > [Values returned from the database are valid only until a subsequent update operation,
705-
/// or the end of the transaction.](http://www.lmdb.tech/doc/group__mdb.html#structMDB__val).
705+
/// > or the end of the transaction.](http://www.lmdb.tech/doc/group__mdb.html#structMDB__val)
706706
///
707707
/// [undefined behavior]: https://doc.rust-lang.org/reference/behavior-considered-undefined.html
708708
pub unsafe fn put_current_with_options<'a, NDC>(

heed/src/iterator/range.rs

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -235,7 +235,7 @@ impl<'txn, KC, DC, IM> RwRange<'txn, KC, DC, IM> {
235235
/// while modifying it.
236236
///
237237
/// > [Values returned from the database are valid only until a subsequent update operation,
238-
/// or the end of the transaction.](http://www.lmdb.tech/doc/group__mdb.html#structMDB__val).
238+
/// > or the end of the transaction.](http://www.lmdb.tech/doc/group__mdb.html#structMDB__val)
239239
///
240240
/// [undefined behavior]: https://doc.rust-lang.org/reference/behavior-considered-undefined.html
241241
pub unsafe fn del_current(&mut self) -> Result<bool> {
@@ -262,7 +262,7 @@ impl<'txn, KC, DC, IM> RwRange<'txn, KC, DC, IM> {
262262
/// version of them (e.g. `&str` into `String`).
263263
///
264264
/// > [Values returned from the database are valid only until a subsequent update operation,
265-
/// or the end of the transaction.](http://www.lmdb.tech/doc/group__mdb.html#structMDB__val).
265+
/// > or the end of the transaction.](http://www.lmdb.tech/doc/group__mdb.html#structMDB__val)
266266
///
267267
/// [undefined behavior]: https://doc.rust-lang.org/reference/behavior-considered-undefined.html
268268
pub unsafe fn put_current<'a>(
@@ -321,7 +321,7 @@ impl<'txn, KC, DC, IM> RwRange<'txn, KC, DC, IM> {
321321
/// version of them (e.g. `&str` into `String`).
322322
///
323323
/// > [Values returned from the database are valid only until a subsequent update operation,
324-
/// or the end of the transaction.](http://www.lmdb.tech/doc/group__mdb.html#structMDB__val).
324+
/// > or the end of the transaction.](http://www.lmdb.tech/doc/group__mdb.html#structMDB__val)
325325
///
326326
/// [undefined behavior]: https://doc.rust-lang.org/reference/behavior-considered-undefined.html
327327
pub unsafe fn put_current_with_options<'a, NDC>(
@@ -672,7 +672,7 @@ impl<'txn, KC, DC, IM> RwRevRange<'txn, KC, DC, IM> {
672672
/// while modifying it.
673673
///
674674
/// > [Values returned from the database are valid only until a subsequent update operation,
675-
/// or the end of the transaction.](http://www.lmdb.tech/doc/group__mdb.html#structMDB__val).
675+
/// > or the end of the transaction.](http://www.lmdb.tech/doc/group__mdb.html#structMDB__val)
676676
///
677677
/// [undefined behavior]: https://doc.rust-lang.org/reference/behavior-considered-undefined.html
678678
pub unsafe fn del_current(&mut self) -> Result<bool> {
@@ -699,7 +699,7 @@ impl<'txn, KC, DC, IM> RwRevRange<'txn, KC, DC, IM> {
699699
/// version of them (e.g. `&str` into `String`).
700700
///
701701
/// > [Values returned from the database are valid only until a subsequent update operation,
702-
/// or the end of the transaction.](http://www.lmdb.tech/doc/group__mdb.html#structMDB__val).
702+
/// > or the end of the transaction.](http://www.lmdb.tech/doc/group__mdb.html#structMDB__val)
703703
///
704704
/// [undefined behavior]: https://doc.rust-lang.org/reference/behavior-considered-undefined.html
705705
pub unsafe fn put_current<'a>(
@@ -758,7 +758,7 @@ impl<'txn, KC, DC, IM> RwRevRange<'txn, KC, DC, IM> {
758758
/// version of them (e.g. `&str` into `String`).
759759
///
760760
/// > [Values returned from the database are valid only until a subsequent update operation,
761-
/// or the end of the transaction.](http://www.lmdb.tech/doc/group__mdb.html#structMDB__val).
761+
/// > or the end of the transaction.](http://www.lmdb.tech/doc/group__mdb.html#structMDB__val)
762762
///
763763
/// [undefined behavior]: https://doc.rust-lang.org/reference/behavior-considered-undefined.html
764764
pub unsafe fn put_current_with_options<'a, NDC>(

0 commit comments

Comments
 (0)