diff options
author | 2023-10-30 20:29:56 +0000 | |
---|---|---|
committer | 2023-10-30 20:29:56 +0000 | |
commit | 7cdf8c6a622a0b583b6104e8af838bffb478147d (patch) | |
tree | 4c8992c9cf5b219bd68394780982fba2c24214d6 /cortex-m-semihosting | |
parent | 7f6ff8fb72eb333344c02147c06e7dc6801870c3 (diff) | |
parent | 05369913a63f329600e7bf70ddfffef78509dc22 (diff) | |
download | cortex-m-7cdf8c6a622a0b583b6104e8af838bffb478147d.tar.gz cortex-m-7cdf8c6a622a0b583b6104e8af838bffb478147d.tar.zst cortex-m-7cdf8c6a622a0b583b6104e8af838bffb478147d.zip |
Merge pull request #490 from newAM/fix-clippy
Fix new clippy lints
Diffstat (limited to 'cortex-m-semihosting')
-rw-r--r-- | cortex-m-semihosting/src/debug.rs | 16 |
1 files changed, 7 insertions, 9 deletions
diff --git a/cortex-m-semihosting/src/debug.rs b/cortex-m-semihosting/src/debug.rs index a4fa6d8..7c7ff9d 100644 --- a/cortex-m-semihosting/src/debug.rs +++ b/cortex-m-semihosting/src/debug.rs @@ -11,16 +11,14 @@ //! ```no_run //! use cortex_m_semihosting::debug::{self, EXIT_SUCCESS, EXIT_FAILURE}; //! -//! fn main() { -//! if 2 == 2 { -//! // report success -//! debug::exit(EXIT_SUCCESS); -//! } else { -//! // report failure -//! debug::exit(EXIT_FAILURE); -//! } +//! if 2 == 2 { +//! // report success +//! debug::exit(EXIT_SUCCESS); +//! } else { +//! // report failure +//! debug::exit(EXIT_FAILURE); //! } -//! +//! ``` /// This values are taken from section 5.5.2 of /// ADS Debug Target Guide (DUI0058). |