diff --git a/.github/workflows/native.yml b/.github/workflows/native.yml
index 577e58f1f..153ec762f 100644
--- a/.github/workflows/native.yml
+++ b/.github/workflows/native.yml
@@ -51,7 +51,7 @@ jobs:
- name: Install Rust
uses: actions-rust-lang/setup-rust-toolchain@v1
with:
- toolchain: 1.74.0
+ toolchain: 1.78.0
components: rustfmt
- name: Cargo fmt check
run: cargo fmt --all -- --check
@@ -152,7 +152,7 @@ jobs:
- name: Install Rust
uses: actions-rust-lang/setup-rust-toolchain@v1
with:
- toolchain: 1.74.0
+ toolchain: 1.78.0
components: clippy
- name: Cargo Clippy
run: cargo clippy -- -D warnings
@@ -168,7 +168,7 @@ jobs:
- name: Install Rust
uses: actions-rust-lang/setup-rust-toolchain@v1
with:
- toolchain: 1.74.0
+ toolchain: 1.78.0
- name: Cargo doc`
run: cargo doc --all --no-deps
diff --git a/Cargo.lock b/Cargo.lock
index 34aa593e4..df2be9102 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -730,7 +730,7 @@ checksum = "adad44e29e4c806119491a7f06f03de4d1af22c3a680dd47f1e6e179439d1f56"
[[package]]
name = "rustfst"
-version = "1.0.0"
+version = "1.0.1"
dependencies = [
"anyhow",
"bimap",
@@ -760,7 +760,7 @@ dependencies = [
[[package]]
name = "rustfst-cli"
-version = "1.0.0"
+version = "1.0.1"
dependencies = [
"anyhow",
"clap",
@@ -774,7 +774,7 @@ dependencies = [
[[package]]
name = "rustfst-ffi"
-version = "1.0.0"
+version = "1.0.1"
dependencies = [
"anyhow",
"downcast-rs",
diff --git a/rustfst-ffi/src/algorithms/compose.rs b/rustfst-ffi/src/algorithms/compose.rs
index 60a3f1d13..24e24726f 100644
--- a/rustfst-ffi/src/algorithms/compose.rs
+++ b/rustfst-ffi/src/algorithms/compose.rs
@@ -279,7 +279,7 @@ pub unsafe extern "C" fn fst_matcher_config_destroy(
return Ok(());
}
- unsafe { drop(Box::from_raw(ptr)) }
+ drop(unsafe { Box::from_raw(ptr) });
Ok(())
})
}
@@ -296,7 +296,7 @@ pub unsafe extern "C" fn fst_compose_config_destroy(
return Ok(());
}
- unsafe { drop(Box::from_raw(ptr)) }
+ drop(unsafe { Box::from_raw(ptr) });
Ok(())
})
}
diff --git a/rustfst-ffi/src/fst/mod.rs b/rustfst-ffi/src/fst/mod.rs
index 30624a4e0..58209ba52 100644
--- a/rustfst-ffi/src/fst/mod.rs
+++ b/rustfst-ffi/src/fst/mod.rs
@@ -381,7 +381,7 @@ pub unsafe fn fst_destroy(fst_ptr: *mut CFst) -> RUSTFST_FFI_RESULT {
return Ok(());
}
- unsafe { drop(Box::from_raw(fst_ptr)) }
+ drop(unsafe { Box::from_raw(fst_ptr) });
Ok(())
})
}
diff --git a/rustfst-ffi/src/iterators.rs b/rustfst-ffi/src/iterators.rs
index 2882a8bf8..6130cfdb6 100644
--- a/rustfst-ffi/src/iterators.rs
+++ b/rustfst-ffi/src/iterators.rs
@@ -127,7 +127,7 @@ pub unsafe extern "C" fn trs_iterator_destroy(iter_ptr: *mut CTrsIterator) -> RU
return Ok(());
}
- unsafe { drop(Box::from_raw(iter_ptr)) }
+ drop(unsafe { Box::from_raw(iter_ptr) });
Ok(())
})
}
@@ -313,7 +313,7 @@ pub unsafe extern "C" fn mut_trs_iterator_destroy(
return Ok(());
}
- unsafe { drop(Box::from_raw(iter_ptr)) }
+ drop(unsafe { Box::from_raw(iter_ptr) });
Ok(())
})
}
@@ -384,7 +384,7 @@ pub unsafe extern "C" fn state_iterator_destroy(
return Ok(());
}
- unsafe { drop(Box::from_raw(iter_ptr)) }
+ drop(unsafe { Box::from_raw(iter_ptr) });
Ok(())
})
}
diff --git a/rustfst-ffi/src/lib.rs b/rustfst-ffi/src/lib.rs
index 68ba4139f..189262d42 100644
--- a/rustfst-ffi/src/lib.rs
+++ b/rustfst-ffi/src/lib.rs
@@ -37,7 +37,7 @@ pub enum RUSTFST_FFI_RESULT {
}
thread_local! {
- pub(crate) static LAST_ERROR: RefCell