Compare commits

..

3 Commits

Author SHA1 Message Date
5c5c81325d fix(build): app name 2026-04-02 19:19:26 +02:00
d1211b7157 fix(texture): display inf rec 2026-04-02 19:17:23 +02:00
99bf883eeb fix(flake): default app name 2026-04-02 18:51:15 +02:00
2 changed files with 10 additions and 4 deletions

View File

@@ -110,7 +110,7 @@
type = "app";
program = "${self'.packages.lispers}/bin/rt_interp";
};
default = self'.apps.rt_demo_lisp;
default = self'.apps.rt_lisp_demo;
};
devShells.default = pkgs.mkShell {

View File

@@ -14,7 +14,7 @@ pub trait Texture: Display + Debug + AsAny + Sync + Send {
fn material_at(&self, pt: Point2) -> Material;
}
#[derive(Clone, Debug)]
#[derive(Clone)]
pub struct TextureWrapper(Arc<dyn Texture>);
impl TextureWrapper {
@@ -25,7 +25,13 @@ impl TextureWrapper {
impl Display for TextureWrapper {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
Display::fmt(&self, f)
Display::fmt(&self.0, f)
}
}
impl Debug for TextureWrapper {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
Debug::fmt(&self.0, f)
}
}
@@ -114,7 +120,7 @@ impl Debug for MandelbrotTexture {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
write!(
f,
"MandelbrotTexture{{at={}, max_iter={}}}",
"MandelbrotTexture{{at={:?}, max_iter={:?}}}",
self.at, self.max_iter
)
}