Skip to content

Commit

Permalink
feat(toml): Expose toml_edit errors
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
epage committed Apr 26, 2022
1 parent 8e08680 commit de77eb1
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/cargo/util/toml/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,9 @@ use crate::util::{
mod targets;
use self::targets::targets;

pub use toml_edit::de::Error as TomlDeError;
pub use toml_edit::TomlError as TomlEditError;

/// Loads a `Cargo.toml` from a file on disk.
///
/// This could result in a real or virtual manifest being returned.
Expand Down

0 comments on commit de77eb1

Please sign in to comment.