From 797da4cfab6b4c29396f90af0608a2723396ed37 Mon Sep 17 00:00:00 2001 From: FredApps Date: Thu, 19 Nov 2026 17:52:01 +0100 Subject: [PATCH] Keep story render jobs independent of gallery registry --- crates/story-render/src/main.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/crates/story-render/src/main.rs b/crates/story-render/src/main.rs index f3214431fe..009a506aac 100644 --- a/crates/story-render/src/main.rs +++ b/crates/story-render/src/main.rs @@ -135,7 +135,7 @@ fn options() -> Result { /// What a job renders. enum Shown { /// One story in a card's story body. - Story(&'static StoryRegistration), + Story(StoryRegistration), /// The Overview card of one story group. Card(Spec), } @@ -254,8 +254,8 @@ fn settle(frames: &mut Frames, width: f32, show: &mut dyn FnMut(&mut Ui)) { } /// The story in a card's body, with its dialog open when the card holds one behind its button: the rect it showed in. -fn story(frames: &mut Frames, story: &'static StoryRegistration, job: &Job, options: &Options) -> Option { - let body = StoryBody::new("sheet", story, job.surface, options.room, Pad::Regular); +fn story(frames: &mut Frames, story: &StoryRegistration, job: &Job, options: &Options) -> Option { + let body = StoryBody::new("sheet", *story, job.surface, options.room, Pad::Regular); let mut state = CardState::default(); let mut flow = None; settle(frames, options.width, &mut |ui| flow = body.show(ui, &mut state).flow);