mirror of
https://github.com/fish-shell/fish-shell.git
synced 2025-03-14 14:35:27 +08:00
Minor cleanup of other unsafe impl
This commit is contained in:
parent
4b9767ce83
commit
36d7049749
@ -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…
x
Reference in New Issue
Block a user