Skip to content

Commit 5274a5d

Browse files
bors[bot]Dirbaio
andauthored
Merge #41
41: Fix defmt feature name. r=Dirbaio a=Dirbaio crates.io doesn't allow `.` in feature names: > the remote server responded with an error: invalid upload request: invalid value: string "defmt-0.3", expected a valid feature name containing only letters, numbers, '-', '+', or '_' at line 1 column 182 Co-authored-by: Dario Nieuwenhuis <[email protected]>
2 parents 0c9b526 + cc19286 commit 5274a5d

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

CHANGELOG.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ and this project adheres to [Semantic Versioning](http://semver.org/).
1111

1212
### Added
1313

14-
- Add `defmt` as optional dependency and implement `defmt::Format` for `Error<E: defmt::Format>`, enabled by `defmt-0.3` unstable feature.
14+
- Add `defmt` as optional dependency and implement `defmt::Format` for `Error<E: defmt::Format>`, enabled by `defmt-0-3` unstable feature.
1515

1616
## [v1.0.0] - 2020-07-07
1717

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ edition = "2018"
1414
rust-version = "1.60"
1515

1616
[features]
17-
"defmt-0.3" = ["dep:defmt"]
17+
"defmt-0-3" = ["dep:defmt"]
1818

1919
[dependencies]
2020
defmt = {version = "0.3", optional = true}

src/lib.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -185,7 +185,7 @@
185185
//!
186186
//! # Features
187187
//!
188-
//! - `defmt-0.3` - unstable feature which adds [`defmt::Format`] impl for [`Error`].
188+
//! - `defmt-0-3` - unstable feature which adds [`defmt::Format`] impl for [`Error`].
189189
190190
#![no_std]
191191

@@ -206,7 +206,7 @@ pub enum Error<E> {
206206
WouldBlock,
207207
}
208208

209-
#[cfg(feature = "defmt-0.3")]
209+
#[cfg(feature = "defmt-0-3")]
210210
impl<E> defmt::Format for Error<E>
211211
where
212212
E: defmt::Format,

0 commit comments

Comments
 (0)