Skip to content

Commit

Permalink
don't deprecate eval when disabling friendly-api feature
Browse files Browse the repository at this point in the history
it erroneously warns on `use magnus::eval` when it's the
`eval!()` macro that you're trying to import
  • Loading branch information
matsadler committed Jun 29, 2023
1 parent 5cc7e6f commit eda98c3
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2745,10 +2745,6 @@ pub fn require(feature: &str) -> Result<bool, Error> {
/// # let _cleanup = unsafe { magnus::embed::init() };
/// assert_eq!(magnus::eval::<i64>("1 + 2").unwrap(), 3);
/// ```
#[cfg_attr(
not(feature = "friendly-api"),
deprecated(note = "please use `Ruby::eval` instead")
)]
#[inline]
pub fn eval<T>(s: &str) -> Result<T, Error>
where
Expand Down

0 comments on commit eda98c3

Please sign in to comment.