Merge pull request #70 from redox-os/clippy
Add clippy lints, action some clippy items
This commit is contained in:
+2
-2
@@ -64,7 +64,7 @@ pub mod time;
|
||||
pub mod user;
|
||||
|
||||
/// Limit on number of schemes
|
||||
pub const SCHEME_MAX_SCHEMES: usize = 65536;
|
||||
pub const SCHEME_MAX_SCHEMES: usize = 65_536;
|
||||
|
||||
/// Unique identifier for a scheme namespace.
|
||||
int_like!(SchemeNamespace, AtomicSchemeNamespace, usize, AtomicUsize);
|
||||
@@ -197,7 +197,7 @@ impl SchemeList {
|
||||
return self.get(id).map(|scheme| (id, scheme));
|
||||
}
|
||||
}
|
||||
return None;
|
||||
None
|
||||
}
|
||||
|
||||
/// Create a new scheme.
|
||||
|
||||
+1
-1
@@ -205,7 +205,7 @@ impl UserInner {
|
||||
}
|
||||
}
|
||||
|
||||
/// UserInner has to be wrapped
|
||||
/// `UserInner` has to be wrapped
|
||||
pub struct UserScheme {
|
||||
inner: Weak<UserInner>
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user