Skip to content

Commit

Permalink
Make embedded-io MSRV 1.48.0
Browse files Browse the repository at this point in the history
  • Loading branch information
RCasatta committed Sep 5, 2023
1 parent 8480a33 commit 53e4309
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
2 changes: 1 addition & 1 deletion embedded-io/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
[package]
name = "embedded-io"
version = "0.5.0"
edition = "2021"
edition = "2018"
description = "Embedded IO traits"
repository = "https://github.com/rust-embedded/embedded-hal"
readme = "README.md"
Expand Down
9 changes: 5 additions & 4 deletions embedded-io/src/lib.rs
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
#![cfg_attr(not(feature = "std"), no_std)]
#![cfg_attr(docsrs, feature(doc_cfg))]
#![warn(missing_docs)]
#![doc = include_str!("../README.md")]
#![cfg_attr(docsrs, cfg_attr(all(), doc = include_str!("../README.md")))]
#![cfg_attr(not(docsrs), doc = "build docs with docsrs")]

use core::fmt;

Expand Down Expand Up @@ -263,7 +264,7 @@ impl From<WriteAllError<std::io::Error>> for std::io::Error {

impl<E: fmt::Debug> fmt::Display for ReadExactError<E> {
fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {
write!(f, "{self:?}")
write!(f, "{:?}", self)
}
}

Expand Down Expand Up @@ -291,7 +292,7 @@ impl<E> From<E> for WriteFmtError<E> {

impl<E: fmt::Debug> fmt::Display for WriteFmtError<E> {
fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {
write!(f, "{self:?}")
write!(f, "{:?}", self)
}
}

Expand All @@ -317,7 +318,7 @@ impl<E> From<E> for WriteAllError<E> {

impl<E: fmt::Debug> fmt::Display for WriteAllError<E> {
fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {
write!(f, "{self:?}")
write!(f, "{:?}", self)
}
}

Expand Down

0 comments on commit 53e4309

Please sign in to comment.