From ef1b016b093923a7c4724d4b338b0bdb1cb9790e Mon Sep 17 00:00:00 2001 From: fxpineau Date: Wed, 16 Oct 2024 14:16:52 +0200 Subject: [PATCH] Remove useless type declaration --- src/skymap_functions.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/skymap_functions.rs b/src/skymap_functions.rs index 33f3feb..29c37a4 100644 --- a/src/skymap_functions.rs +++ b/src/skymap_functions.rs @@ -98,7 +98,7 @@ impl<'py> SupportedArray<'py> { #[pyfunction] pub fn write_skymap(values: SupportedArray<'_>, path: String) -> Result<(), PyErr> { - let writer: BufWriter = + let writer = BufWriter::new(File::create(path).map_err(|err| PyIOError::new_err(err.to_string()))?); match values { SupportedArray::F64(values) => write_skymap_gen(writer, values.as_slice()),