mirror of
https://github.com/sigp/lighthouse.git
synced 2026-04-29 18:53:32 +00:00
Merge branch 'unstable' of https://github.com/sigp/lighthouse into eip4844
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