Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Maaarcocr committed Dec 13, 2023
1 parent cf402d7 commit d1c340f
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/typed_value.rs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
//! Types for working with Ruby's VALUE type, but they are more strongly typed.

use crate::{
value::{qfalse, qnil, qtrue, ReprValue},
value::{private::ReprValue as _, qfalse, qnil, qtrue, ReprValue},
Enumerator, Float, Integer, RArray, RClass, RComplex, RFile, RHash, RMatch, RModule, RObject,
RRational, RRegexp, RString, RStruct, RTypedData, Range, Symbol, Value,
};
Expand Down Expand Up @@ -128,7 +128,8 @@ impl TypedValue {
}
}

fn as_value(&self) -> Value {
/// Converts a `TypedValue` into a `Value`.
pub fn as_value(&self) -> Value {
match self {
Self::Integer(i) => i.as_value(),
Self::Float(f) => f.as_value(),
Expand Down

0 comments on commit d1c340f

Please sign in to comment.