From f1990b782d0122da1a125ed5eb7a2c1a9a58f4bc Mon Sep 17 00:00:00 2001 From: Kitaiti Makoto Date: Sat, 2 Jan 2021 09:00:07 +0900 Subject: [PATCH 1/2] Fix tests --- plume-models/src/instance.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/plume-models/src/instance.rs b/plume-models/src/instance.rs index fec3cd24..98800857 100644 --- a/plume-models/src/instance.rs +++ b/plume-models/src/instance.rs @@ -488,12 +488,12 @@ pub(crate) mod tests { ); assert_eq!( inst.long_description_html, - SafeString::new("

long_description

\n") + SafeString::new("

long_description

\n") ); assert_eq!(inst.short_description.get(), "[short](#link)"); assert_eq!( inst.short_description_html, - SafeString::new("

short

\n") + SafeString::new("

short

\n") ); assert_eq!(inst.default_license, "CC-BY-SAO".to_owned()); Ok(()) From fe05f9a58e7acebefd50ee952d2fba2555171ac1 Mon Sep 17 00:00:00 2001 From: Kitaiti Makoto Date: Sat, 2 Jan 2021 09:12:45 +0900 Subject: [PATCH 2/2] cargo fmt --- plume-models/src/instance.rs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/plume-models/src/instance.rs b/plume-models/src/instance.rs index 98800857..a2114915 100644 --- a/plume-models/src/instance.rs +++ b/plume-models/src/instance.rs @@ -488,7 +488,9 @@ pub(crate) mod tests { ); assert_eq!( inst.long_description_html, - SafeString::new("

long_description

\n") + SafeString::new( + "

long_description

\n" + ) ); assert_eq!(inst.short_description.get(), "[short](#link)"); assert_eq!(