Skip to content
This repository was archived by the owner on Dec 15, 2021. It is now read-only.

Commit 335f90f

Browse files
bors[bot]japaric
andcommitted
Merge #18
18: include version in the output of -V r=japaric a=japaric Co-authored-by: Jorge Aparicio <jorge@japaric.io>
2 parents 25c798e + dd82af8 commit 335f90f

File tree

2 files changed

+7
-2
lines changed

2 files changed

+7
-2
lines changed

src/bin/itmdump.rs

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@ extern crate itm;
88
extern crate log;
99

1010
use clap::{App, Arg, ArgMatches};
11-
use itm::{packet, Decoder};
1211
use itm::error::{Error, ErrorKind, Result, ResultExt};
12+
use itm::{packet, Decoder};
1313
use log::{LogLevelFilter, LogRecord};
1414
use std::fs::File;
1515
use std::io::Write;
@@ -59,7 +59,10 @@ fn main() {
5959

6060
fn run() -> Result<()> {
6161
let matches = App::new("itmdump")
62-
.version(include_str!(concat!(env!("OUT_DIR"), "/commit-info.txt")))
62+
.version(concat!(
63+
env!("CARGO_PKG_VERSION"),
64+
include_str!(concat!(env!("OUT_DIR"), "/commit-info.txt"))
65+
))
6366
.about(
6467
"\n\
6568
Reads data from an ARM CPU ITM and decodes it. \n\

src/lib.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -81,6 +81,8 @@
8181
//!
8282
//! [CoreSight ITM]: http://infocenter.arm.com/help/index.jsp?topic=/com.arm.doc.ddi0314h/CAAGGCDH.html
8383
84+
#![allow(renamed_and_removed_lints)]
85+
#![allow(unused_doc_comments)]
8486
#![deny(missing_docs)]
8587
#![deny(warnings)]
8688

0 commit comments

Comments
 (0)