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
No known key found for this signature in database
2 changed files with 1 additions and 3 deletions

View file

@ -108,9 +108,6 @@ static FUNCTION_SET: Lazy<Mutex<FunctionSet>> = Lazy::new(|| {
})
});
// 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.