From 4f7b1f1f59210db3fde2e1d8338baea0df36632e Mon Sep 17 00:00:00 2001 From: Colin Roberts Date: Fri, 29 Nov 2024 16:22:06 -0700 Subject: [PATCH] fix: doctest --- crates/learner/src/resource/mod.rs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/crates/learner/src/resource/mod.rs b/crates/learner/src/resource/mod.rs index cfda9fe..b8475c6 100644 --- a/crates/learner/src/resource/mod.rs +++ b/crates/learner/src/resource/mod.rs @@ -13,6 +13,8 @@ //! # Examples //! //! ```rust,no_run +//! use std::collections::BTreeMap; +//! //! use learner::{ //! resource::{Paper, Resource, ResourceConfig}, //! Learner, @@ -29,7 +31,7 @@ //! println!("Paper type: {}", paper.resource_type()); //! //! // Or create a custom resource type at runtime -//! let mut fields = serde_json::Map::new(); +//! let mut fields = BTreeMap::new(); //! fields.insert("title".into(), json!("My Thesis")); //! fields.insert("university".into(), json!("Tech University")); //!