Skip to content

Commit 3b72d87

Browse files
committed
Run cargo fmt
1 parent db5eae6 commit 3b72d87

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

juniper_rocket/src/lib.rs

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -110,16 +110,14 @@ where
110110

111111
pub fn operation_name(&self) -> Option<&str> {
112112
match self {
113-
GraphQLBatchRequest::Single(req) => {
114-
req.operation_name()
115-
},
113+
GraphQLBatchRequest::Single(req) => req.operation_name(),
116114
GraphQLBatchRequest::Batch(reqs) => {
117115
if reqs.len() == 1 {
118116
reqs.get(0).and_then(|req| req.operation_name())
119117
} else {
120118
None
121119
}
122-
},
120+
}
123121
}
124122
}
125123
}

0 commit comments

Comments
 (0)