Skip to content

Commit 98313bd

Browse files
committedNov 5, 2019
chore: remove unnecessary parentheses around type
1 parent a37bd8c commit 98313bd

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed
 

‎clippy_lints/src/mutex_atomic.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ impl<'a, 'tcx> LateLintPass<'a, 'tcx> for Mutex {
7777
}
7878
}
7979

80-
fn get_atomic_name(ty: Ty<'_>) -> Option<(&'static str)> {
80+
fn get_atomic_name(ty: Ty<'_>) -> Option<&'static str> {
8181
match ty.kind {
8282
ty::Bool => Some("AtomicBool"),
8383
ty::Uint(_) => Some("AtomicUsize"),

‎clippy_lints/src/utils/mod.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -239,7 +239,7 @@ pub fn match_path_ast(path: &ast::Path, segments: &[&str]) -> bool {
239239
}
240240

241241
/// Gets the definition associated to a path.
242-
pub fn path_to_res(cx: &LateContext<'_, '_>, path: &[&str]) -> Option<(def::Res)> {
242+
pub fn path_to_res(cx: &LateContext<'_, '_>, path: &[&str]) -> Option<def::Res> {
243243
let crates = cx.tcx.crates();
244244
let krate = crates
245245
.iter()

0 commit comments

Comments
 (0)
Please sign in to comment.