feat(xatu): add let order rule #88

Closed
alexion wants to merge 5 commits from xatu-let-order into main
3 changed files with 3 additions and 2 deletions
Showing only changes of commit 5fafebad33 - Show all commits

View File

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

View File

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

View File

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