From 3d4afe62809ad5263b303a29ec543e4c39310d97 Mon Sep 17 00:00:00 2001 From: stuebinm Date: Sat, 8 May 2021 18:38:37 +0200 Subject: inject_types -> with_builtin_types at request of Nadrieril. --- serde_dhall/src/options/de.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'serde_dhall/src') diff --git a/serde_dhall/src/options/de.rs b/serde_dhall/src/options/de.rs index 4f7c346..3f0686d 100644 --- a/serde_dhall/src/options/de.rs +++ b/serde_dhall/src/options/de.rs @@ -258,14 +258,14 @@ impl<'a, A> Deserializer<'a, A> { /// let data = "Newtype.Bar"; /// /// let deserialized = serde_dhall::from_str(data) - /// .inject_types(substs) + /// .with_builtin_types(substs) /// .parse::() /// .unwrap(); /// /// assert_eq!(deserialized, Newtype::Bar); /// /// ``` - pub fn inject_types( + pub fn with_builtin_types( self, tys: impl IntoIterator, ) -> Self { @@ -285,7 +285,7 @@ impl<'a, A> Deserializer<'a, A> { } } - pub fn inject_single_type(self, name: String, ty: SimpleType) -> Self { + pub fn with_builtin_type(self, name: String, ty: SimpleType) -> Self { Deserializer { substitutions: self .substitutions -- cgit v1.2.3