mirror of
https://github.com/Myriad-Dreamin/tinymist.git
synced 2025-07-19 10:45:02 +00:00
refactor: remove once_cell
use from tinymist (#1632)
* refactor: remove `once_cell` use from tinymist * feat: remove more
This commit is contained in:
parent
769fc93df9
commit
72e33e461d
20 changed files with 68 additions and 82 deletions
|
@ -1,4 +1,3 @@
|
|||
use once_cell::sync::OnceCell;
|
||||
use typst_shim::syntax::LinkedNodeExt;
|
||||
|
||||
use crate::{
|
||||
|
@ -52,7 +51,7 @@ impl SemanticRequest for SignatureHelpRequest {
|
|||
label.push('(');
|
||||
|
||||
let mut real_offset = 0;
|
||||
let focus_name = OnceCell::new();
|
||||
let focus_name = OnceLock::new();
|
||||
for (idx, (param, ty)) in sig.params().enumerate() {
|
||||
if is_set && !param.attrs.settable {
|
||||
continue;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue