Skip to content

Commit a12814d

Browse files
committed
change ret(Debug) to ret where possible
Now that `ret` displays `Result::Ok` but not `Result`, there are some case that `ret(Debug)` is not necessary any longer.
1 parent d049d80 commit a12814d

File tree

1 file changed

+2
-2
lines changed
  • tracing-attributes/tests

1 file changed

+2
-2
lines changed

tracing-attributes/tests/ret.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -167,7 +167,7 @@ fn test_dbg() {
167167
handle.assert_finished();
168168
}
169169

170-
#[instrument(err, ret(Debug))]
170+
#[instrument(err, ret)]
171171
fn ret_and_err() -> Result<u8, TryFromIntError> {
172172
u8::try_from(1234)
173173
}
@@ -196,7 +196,7 @@ fn test_ret_and_err() {
196196
handle.assert_finished();
197197
}
198198

199-
#[instrument(err, ret(Debug))]
199+
#[instrument(err, ret)]
200200
fn ret_and_ok() -> Result<u8, TryFromIntError> {
201201
u8::try_from(123)
202202
}

0 commit comments

Comments
 (0)