Skip to content

Commit

Permalink
Fix documentation (docs.rs) and release 2.1.2
Browse files Browse the repository at this point in the history
  • Loading branch information
korken89 committed Dec 6, 2024
1 parent f179158 commit 22f3c21
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 7 deletions.
3 changes: 2 additions & 1 deletion rtic-macros/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,11 @@ For each category, *Added*, *Changed*, *Fixed* add new entries at the top!

## [Unreleased]

- Replace `proc-macro-error` with `proc-macro-error2`
## [v2.1.1] - 2024-12-06

### Changed

- Replace `proc-macro-error` with `proc-macro-error2`
- Fix codegen emitting unqualified `Result`
- Improve error output for prios > dispatchers

Expand Down
2 changes: 1 addition & 1 deletion rtic-macros/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ name = "rtic-macros"
readme = "../README.md"
repository = "https://github.com/rtic-rs/rtic"

version = "2.1.0"
version = "2.1.1"

[lib]
proc-macro = true
Expand Down
6 changes: 3 additions & 3 deletions rtic-time/src/timer_queue.rs
Original file line number Diff line number Diff line change
Expand Up @@ -211,7 +211,7 @@ pub struct Delay<'q, Backend: TimerQueueBackend> {
marker: AtomicUsize,
}

impl<'q, Backend: TimerQueueBackend> Future for Delay<'q, Backend> {
impl<Backend: TimerQueueBackend> Future for Delay<'_, Backend> {
type Output = ();

fn poll(self: Pin<&mut Self>, cx: &mut core::task::Context<'_>) -> Poll<Self::Output> {
Expand Down Expand Up @@ -249,7 +249,7 @@ impl<'q, Backend: TimerQueueBackend> Future for Delay<'q, Backend> {
}
}

impl<'q, Backend: TimerQueueBackend> Drop for Delay<'q, Backend> {
impl<Backend: TimerQueueBackend> Drop for Delay<'_, Backend> {
fn drop(&mut self) {
// SAFETY: Drop cannot be run at the same time as poll, so we can't end up
// derefencing this concurrently to the one in `poll`.
Expand All @@ -269,7 +269,7 @@ pub struct Timeout<'q, Backend: TimerQueueBackend, F> {
future: F,
}

impl<'q, Backend: TimerQueueBackend, F: Future> Future for Timeout<'q, Backend, F> {
impl<Backend: TimerQueueBackend, F: Future> Future for Timeout<'_, Backend, F> {
type Output = Result<F::Output, TimeoutError>;

fn poll(self: Pin<&mut Self>, cx: &mut core::task::Context<'_>) -> Poll<Self::Output> {
Expand Down
2 changes: 2 additions & 0 deletions rtic/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,8 @@ Example:

## [Unreleased]

## [v2.1.2] - 2024-12-06

### Changed

- Updated esp32c3 dependency to v0.26.0
Expand Down
4 changes: 2 additions & 2 deletions rtic/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ name = "rtic"
readme = "../README.md"
repository = "https://github.com/rtic-rs/rtic"

version = "2.1.1"
version = "2.1.2"

[package.metadata.docs.rs]
features = ["rtic-macros/test-template"]
Expand All @@ -31,7 +31,7 @@ riscv = { version = "0.12.1", optional = true }
cortex-m = { version = "0.7.0", optional = true }
bare-metal = "1.0.0"
portable-atomic = { version = "1", default-features = false }
rtic-macros = { path = "../rtic-macros", version = "=2.1.0" }
rtic-macros = { path = "../rtic-macros", version = "=2.1.1" }
rtic-core = "1"
critical-section = "1"

Expand Down

0 comments on commit 22f3c21

Please sign in to comment.