1133 Commits

Author SHA1 Message Date
Pavel Ivanov
59bacfda0c
feat(indexmap): added truncate 2025-04-06 00:20:03 +02:00
Markus Reiter
6067119ed3
Rename defmt-1 feature to defmt. 2025-04-05 23:46:31 +02:00
Alex Martens
12086b194b defmt: 0.3 -> 1 2025-04-05 23:40:46 +02:00
Markus Reiter
4b78bc1bb9
Merge pull request #500 from Nitrokey/vec-drain-generic
Implement `Vec::drain`, `as_(mut_)view` on the `*Inner` types, generic over `Storage`
2025-04-05 21:29:45 +00:00
Sosthène Guédon
b01fcfb662
Add workaround for compiler ICE 2025-03-31 15:51:00 +02:00
Sosthène Guédon
db7e873422
Fix clippy warning 2025-03-31 15:51:00 +02:00
Sosthène Guédon
2496cddc78
Fix doc issue on String and LinearMap 2025-03-31 15:51:00 +02:00
Sosthène Guédon
3e7c9aa7fe
Genericise drain function over storage 2025-03-31 15:51:00 +02:00
Sosthène Guédon
7759201dd4
Genericise as_(mut_)view 2025-03-31 15:50:52 +02:00
Alex Martens
1a33fec858
Merge pull request #545 from reitermarkus/linear-map-borrow
Add test for borrowed `LinearMap` key.
2025-03-31 13:41:28 +00:00
Markus Reiter
ee67d71224
Merge pull request #536 from newAM/binary-heap-safety
BinaryHeap: fix missing safety doc
2025-03-31 07:28:48 +00:00
Alex Martens
7f2cdeefdc BinaryHeap: fix missing safety doc 2025-03-28 07:41:38 -07:00
Markus Reiter
628eed6cd5
Add test for borrowed LinearMap key. 2025-03-28 10:52:19 +01:00
Alex Martens
64fee10a3b
Merge pull request #533 from newAM/fix-clippy-result-unit-error
Remove allow(clippy::result_unit_err)
2025-03-28 09:39:03 +00:00
Alex Martens
8566b6c5ab Remove allow(clippy::result_unit_err)
Unit error types do not implement core::error::Error which leads to some
ergonomic issues.
2025-03-27 19:52:13 -07:00
Alex Martens
4e31d3e604
Merge pull request #534 from newAM/linear-map-clippy
LinearMap: remove allow(clippy::map_identity)
2025-03-26 08:27:10 +00:00
Alex Martens
9ab477c4a8
Merge pull request #537 from newAM/fix-lib-example
lib.rs: remove unwrap from example
2025-03-26 08:15:34 +00:00
Alex Martens
3fcc87d23b
Merge pull request #544 from pvdrz/clippy-pedantic-fixes
Fix warnings for some `clippy::pedantic` lints
2025-03-26 00:04:35 +00:00
Christian Poveda
2c6c169bf0
Fix clippy::ref_as_ptr warnings 2025-03-25 14:36:45 -05:00
Christian Poveda
6db54e57dc
Fix clippy::if_not_else warnings 2025-03-25 14:36:44 -05:00
Christian Poveda
739dbc4c3c
Fix clippy::semicolon_if_nothing_returned warnings 2025-03-25 14:36:44 -05:00
Christian Poveda
1635b7292a
Fix clippy::doc_markdown warnings 2025-03-25 14:36:43 -05:00
Christian Poveda
cc010b3be1
Fix clippy::ptr_as_ptr warnings 2025-03-25 14:35:48 -05:00
Adam Wagenhäuser
f3b24a7f76 Make the heapless to alloc Vec conversion fallible as well.
This allows to catch OOM errors.
2025-03-25 14:48:54 +01:00
Alex Martens
b8245158b9
Merge pull request #543 from pvdrz/remove-sealed-mod
Remove `sealed` module
2025-03-25 01:29:47 +00:00
Christian Poveda
18446d780f
Remove sealed module 2025-03-24 18:26:02 -05:00
Markus Reiter
bfc95984f3
Merge pull request #538 from pvdrz/remove-const-capacity
`Vec`: rename `storage_capacity` to `capacity` and remove the `const` version
2025-03-24 22:18:54 +00:00
Christian Poveda
fde68472b3
Update changelog 2025-03-24 16:24:55 -05:00
Christian Poveda
08f403fc3e
Vec: rename storage_capacity to capacity and remove the const version 2025-03-24 16:24:55 -05:00
Markus Reiter
b8a42532ce
Merge pull request #532 from newAM/sorted-linked-list-pop-ret-type
SortedLinkedList::pop: change return type to match std::vec::pop
2025-03-24 21:07:23 +00:00
Markus Reiter
fefcba70a9
Merge pull request #542 from pvdrz/clippy-fixes
Fix `clippy::nursery` warnings
2025-03-24 21:01:50 +00:00
Christian Poveda
d65abc245d
Fix clippy::option_if_let_else warnings 2025-03-24 11:57:59 -05:00
Christian Poveda
887a076c54
Fix clippy::redundant_pub_crate warnings 2025-03-24 11:57:59 -05:00
Christian Poveda
31a68def9a
Fix clippy::too_long_first_doc_paragraph warnings 2025-03-24 11:57:58 -05:00
Christian Poveda
e3e07b796b
Fix clippy::use_self warnings 2025-03-24 11:57:57 -05:00
Adam Wagenhäuser
d87e4f335a Run cargo fmt. 2025-03-21 21:14:14 +01:00
Adam Wagenhäuser
070e399b96 Update Changelog. 2025-03-21 21:12:51 +01:00
Adam Wagenhäuser
cfc9b33fa3 Update docs on conversion trait impls. 2025-03-21 21:07:13 +01:00
Adam Wagenhäuser
e7a02ed780 Implement conversions between alloc and heapless vecs. 2025-03-21 18:20:49 +01:00
Daniel Egger
3c97d2f035
Merge pull request #502 from Nitrokey/vec-covariance
Re-introduce covariance for containers
2025-03-18 19:37:45 +00:00
Sosthène Guédon
dc5ed623eb
Re-introduce covariance for containers 2025-03-12 09:10:22 +01:00
Alex Martens
7e959054e4 lib.rs: remove unwrap from example
This follows the C-QUESTION-MARK API guideline.
Also we had missed an unwrap on one of the push calls.
2025-03-09 12:54:08 -07:00
Alex Martens
d54d8cb3e0 LinearMap: remove allow(clippy::map_identity)
This was previously required due to a false positive that has since
been resolved.
2025-03-09 11:16:24 -07:00
Alex Martens
1fdf663927 SortedLinkedList::pop: change return type to match std::vec::pop 2025-03-09 10:37:32 -07:00
Markus Reiter
2e71c18252
Merge pull request #521 from dysonltd/impl_eq_for_Deque
Implements PartialEq and Eq for Deque
2025-03-03 19:34:28 +00:00
William Hicklin
fc75aed0ff Changed the PartialEq impl of Deque, replacing the if comparison chain with match + cmp, as requested by clippy. 2025-02-18 14:11:12 +00:00
William Hicklin
6e47051553 Added a changelog entry. 2025-02-18 14:11:12 +00:00
William Hicklin
a0726855eb Implemented PartialEq and Eq for the heapless Deque. This implementation was copied form the colloctions VecDeque. 2025-02-18 14:11:12 +00:00
Alex Martens
346525f013
Merge pull request #528 from us-irs/docs-improvements
improvements for documentation
2025-02-15 17:30:21 +00:00
Robin Mueller
0f20e40dd0 improvements for documentation 2025-02-13 11:04:28 +01:00