fix(xatu): preserve bindings with unsupported values

This commit is contained in:
2026-09-19 23:47:54 -04:00
parent 6585615628
commit 5fafebad33
3 changed files with 3 additions and 2 deletions

View File

@@ -54,6 +54,7 @@ pub struct Ident {
pub enum Expr { pub enum Expr {
Ident(Ident), Ident(Ident),
Select(Select), Select(Select),
Other,
} }
#[derive(Debug, Clone, PartialEq, Eq)] #[derive(Debug, Clone, PartialEq, Eq)]

View File

@@ -115,7 +115,7 @@ impl TryFrom<rnix::ast::Expr> for ast::Expr {
match expr { match expr {
rnix::ast::Expr::Ident(ident) => Ok(Self::Ident(ident.into())), rnix::ast::Expr::Ident(ident) => Ok(Self::Ident(ident.into())),
rnix::ast::Expr::Select(select) => Ok(Self::Select(select.try_into()?)), rnix::ast::Expr::Select(select) => Ok(Self::Select(select.try_into()?)),
_ => Err(()), _ => Ok(Self::Other),
} }
} }
} }

View File

@@ -1,5 +1,5 @@
let let
support = dependency; support = "support";
primary = support; primary = support;
in { in {
package = package; package = package;