mirror of
https://github.com/fish-shell/fish-shell
synced 2025-01-26 03:35:17 +00:00
Minor cleanup of other unsafe impl
This commit is contained in:
parent
4b9767ce83
commit
36d7049749
2 changed files with 1 additions and 3 deletions
|
@ -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 {
|
||||
|
|
|
@ -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.
|
||||
|
|
Loading…
Reference in a new issue