Skip to content

Commit 2437051

Browse files
committed
More track_caller
1 parent d7a3513 commit 2437051

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/parse/matches/arg_matches.rs

+3
Original file line numberDiff line numberDiff line change
@@ -138,6 +138,7 @@ impl ArgMatches {
138138
/// [`ArgMatches::values_of`]: ArgMatches::values_of()
139139
/// [`default_value`]: crate::Arg::default_value()
140140
/// [`occurrences_of`]: crate::ArgMatches::occurrences_of()
141+
#[cfg_attr(debug_assertions, track_caller)]
141142
pub fn value_of<T: Key>(&self, id: T) -> Option<&str> {
142143
let id = Id::from(id);
143144
let arg = self.get_arg(&id)?;
@@ -277,6 +278,7 @@ impl ArgMatches {
277278
/// ```
278279
/// [values]: Values
279280
/// [`Iterator`]: std::iter::Iterator
281+
#[cfg_attr(debug_assertions, track_caller)]
280282
pub fn values_of<T: Key>(&self, id: T) -> Option<Values> {
281283
let id = Id::from(id);
282284
let arg = self.get_arg(&id)?;
@@ -293,6 +295,7 @@ impl ArgMatches {
293295

294296
/// Placeholder documentation.
295297
#[cfg(feature = "unstable-grouped")]
298+
#[cfg_attr(debug_assertions, track_caller)]
296299
pub fn grouped_values_of<T: Key>(&self, id: T) -> Option<GroupedValues> {
297300
let id = Id::from(id);
298301
let arg = self.get_arg(&id)?;

0 commit comments

Comments
 (0)