ALPHA: wire is a tool to deploy nixos systems wire.althaea.zone/

heap alloc flakeref in TypeUnsupported errors

+2 -2
+1 -1
wire/lib/src/errors.rs
··· 170 170 url("{DOCS_URL}#{}", self.code().unwrap()) 171 171 )] 172 172 #[error("The flakref had an unsupported type: {:#?}", .0)] 173 - TypeUnsupported(FlakeRef), 173 + TypeUnsupported(Box<FlakeRef>), 174 174 } 175 175 176 176 #[derive(Debug, Diagnostic, Error)]
+1 -1
wire/lib/src/hive/mod.rs
··· 122 122 | FlakeRef::SourceHut { .. }, 123 123 ) => Ok(HiveLocation::Flake(path)), 124 124 Err(err) => Err(HiveLocationError::Malformed(err)), 125 - Ok(flakeref) => Err(HiveLocationError::TypeUnsupported(flakeref)), 125 + Ok(flakeref) => Err(HiveLocationError::TypeUnsupported(Box::new(flakeref))), 126 126 } 127 127 } 128 128