mirror of
https://github.com/sigp/lighthouse.git
synced 2026-03-23 23:04:53 +00:00
Fix rust 1.65 lints (#3682)
## Issue Addressed New lints for rust 1.65 ## Proposed Changes Notable change is the identification or parameters that are only used in recursion ## Additional Info na
This commit is contained in:
@@ -55,7 +55,7 @@ pub enum Error {
|
||||
/// Creates a file with `600 (-rw-------)` permissions and writes the specified bytes to file.
|
||||
pub fn create_with_600_perms<P: AsRef<Path>>(path: P, bytes: &[u8]) -> Result<(), Error> {
|
||||
let path = path.as_ref();
|
||||
let mut file = File::create(&path).map_err(Error::UnableToCreateFile)?;
|
||||
let mut file = File::create(path).map_err(Error::UnableToCreateFile)?;
|
||||
|
||||
#[cfg(unix)]
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user