From 50978325393a64f1b4862373f1cb70273089f1d5 Mon Sep 17 00:00:00 2001 From: Sunli Date: Wed, 28 Oct 2020 09:39:19 +0800 Subject: [PATCH] Fix #327. --- src/schema.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/schema.rs b/src/schema.rs index 17e7f130..6adaceaa 100644 --- a/src/schema.rs +++ b/src/schema.rs @@ -327,8 +327,8 @@ where } /// Returns SDL(Schema Definition Language) of this schema. - pub fn sdl() -> String { - Self::create_registry().export_sdl(false) + pub fn sdl(&self) -> String { + self.0.env.registry.export_sdl(false) } /// Get all names in this schema