Minor cleanup of other unsafe impl

This commit is contained in:
Peter Ammon
2024-12-27 14:46:46 -08:00
parent 4b9767ce83
commit 36d7049749
2 changed files with 1 additions and 3 deletions

View File

@@ -108,9 +108,6 @@ fn allow_autoload(&self, name: &wstr) -> bool {
})
});
// Safety: global lock.
unsafe impl Send for FunctionSet {}
/// Make sure that if the specified function is a dynamically loaded function, it has been fully
/// loaded. Note this executes fish script code.
pub fn load(name: &wstr, parser: &Parser) -> bool {

View File

@@ -336,6 +336,7 @@ pub struct TopicMonitor {
}
// safety: this is only needed for tests
#[cfg(test)]
unsafe impl Sync for TopicMonitor {}
/// The principal topic monitor.