fix: compile warnings (#1774)

This commit is contained in:
Myriad-Dreamin 2025-05-22 11:37:44 +08:00 committed by GitHub
parent 7499dcb8c4
commit 7de64aefe5
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
9 changed files with 34 additions and 20 deletions

View file

@ -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