mirror of
https://github.com/Myriad-Dreamin/tinymist.git
synced 2025-08-03 09:52:27 +00:00
fix: compile warnings (#1774)
This commit is contained in:
parent
7499dcb8c4
commit
7de64aefe5
9 changed files with 34 additions and 20 deletions
|
@ -164,10 +164,7 @@ pub struct Typlite {
|
|||
}
|
||||
|
||||
impl Typlite {
|
||||
/// Create a new Typlite instance from a [`World`].
|
||||
///
|
||||
/// This is useful when you have a [`Source`] instance and you can avoid
|
||||
/// reparsing the content.
|
||||
/// Creates a new Typlite instance from a [`World`].
|
||||
pub fn new(world: Arc<LspWorld>) -> Self {
|
||||
Self {
|
||||
world,
|
||||
|
@ -176,7 +173,7 @@ impl Typlite {
|
|||
}
|
||||
}
|
||||
|
||||
/// Set conversion feature
|
||||
/// Sets conversion features
|
||||
pub fn with_feature(mut self, feat: TypliteFeat) -> Self {
|
||||
self.feat = feat;
|
||||
self
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue