Skip to content

Commit 670c85c

Browse files
Kosie van der Merwemeta-codesync[bot]
authored andcommitted
Suppress unused_imports that are used
Summary: ## This diff This is actually used, but I guess the macro stuff confuses the linter. ## This stack We have some annoying unused deps warnings all over Citadel. Some can be cleaned up, some are actually used and some are due to the fact that we moved code without moving the tests too. Reviewed By: anaypaul Differential Revision: D91927999 fbshipit-source-id: f39747397a478a0fe4d955d714a4f70230f66dce
1 parent 0bca613 commit 670c85c

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

td_util/src/supertd_events_logger.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,9 @@ mod linux {
9898
compile_error!("duplicate `event` field in `scuba!` macro");
9999
};
100100
( @SET_FIELD ( $builder:ident, data, $value:expr ) ) => {{
101+
#[allow(unused_imports)]
101102
use $crate::supertd_events::serde_json::json;
103+
102104
match $crate::supertd_events::serde_json::to_string(&$value) {
103105
Ok(json) => {
104106
$builder.set_data(json);

0 commit comments

Comments
 (0)