mirror of
https://github.com/hl-archive-node/nanoreth.git
synced 2025-12-06 10:59:55 +00:00
use core::error::Error (#11317)
This commit is contained in:
@ -305,7 +305,7 @@ pub fn write_json_file<T: Serialize>(path: &Path, obj: &T) -> Result<()> {
|
||||
pub fn atomic_write_file<F, E>(file_path: &Path, write_fn: F) -> Result<()>
|
||||
where
|
||||
F: FnOnce(&mut File) -> std::result::Result<(), E>,
|
||||
E: Into<Box<dyn std::error::Error + Send + Sync>>,
|
||||
E: Into<Box<dyn core::error::Error + Send + Sync>>,
|
||||
{
|
||||
let mut tmp_path = file_path.to_path_buf();
|
||||
tmp_path.set_extension("tmp");
|
||||
|
||||
Reference in New Issue
Block a user