Skip to content

Commit

Permalink
Use default generic param (#192)
Browse files Browse the repository at this point in the history
* Use default generic param

* Find another place

---------

Co-authored-by: James Wilson <[email protected]>
  • Loading branch information
boundless-forest and jsdw authored Aug 16, 2023
1 parent f3d386c commit ec8d941
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/meta_type.rs
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ use crate::prelude::{
hash::{Hash, Hasher},
};

use crate::{form::MetaForm, Type, TypeInfo};
use crate::{Type, TypeInfo};

/// A metatype abstraction.
///
Expand All @@ -31,7 +31,7 @@ use crate::{form::MetaForm, Type, TypeInfo};
#[derive(Clone, Copy)]
pub struct MetaType {
/// Function pointer to get type information.
fn_type_info: fn() -> Type<MetaForm>,
fn_type_info: fn() -> Type,
// The standard type ID (ab)used in order to provide
// cheap implementations of the standard traits
// such as `PartialEq`, `PartialOrd`, `Debug` and `Hash`.
Expand Down Expand Up @@ -86,7 +86,7 @@ impl MetaType {
}

/// Returns the meta type information.
pub fn type_info(&self) -> Type<MetaForm> {
pub fn type_info(&self) -> Type {
(self.fn_type_info)()
}

Expand Down

0 comments on commit ec8d941

Please sign in to comment.