Skip to content

Commit de77eb1

Browse files
committedApr 26, 2022
feat(toml): Expose toml_edit errors
This officially adds `toml_edit` to the public API but this will let RLS use these errors and stay up-to-date without manual intervention.
1 parent 8e08680 commit de77eb1

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed
 

‎src/cargo/util/toml/mod.rs‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,9 @@ use crate::util::{
3636
mod targets;
3737
use self::targets::targets;
3838

39+
pub use toml_edit::de::Error as TomlDeError;
40+
pub use toml_edit::TomlError as TomlEditError;
41+
3942
/// Loads a `Cargo.toml` from a file on disk.
4043
///
4144
/// This could result in a real or virtual manifest being returned.

0 commit comments

Comments
 (0)
Please sign in to comment.