Skip to content

Commit

Permalink
Yeet trace_macros, extract_if, slice_concat_trait, never_type
Browse files Browse the repository at this point in the history
  • Loading branch information
elkowar committed Feb 17, 2024
1 parent 2211e36 commit 6a76e2a
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 6 deletions.
3 changes: 0 additions & 3 deletions crates/eww/src/main.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,3 @@
#![feature(trace_macros)]
#![feature(extract_if)]
#![feature(slice_concat_trait)]
#![feature(try_blocks)]
#![allow(rustdoc::private_intra_doc_links)]

Expand Down
4 changes: 2 additions & 2 deletions crates/simplexpr/src/eval.rs
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ use crate::{
use eww_shared_util::{Span, Spanned, VarName};
use std::{
collections::HashMap,
convert::{TryFrom, TryInto},
convert::{Infallible, TryFrom, TryInto},
str::FromStr,
sync::Arc,
};
Expand Down Expand Up @@ -126,7 +126,7 @@ impl SimplExpr {
}

pub fn map_var_refs(self, f: impl Fn(Span, VarName) -> SimplExpr) -> Self {
self.try_map_var_refs(|span, var| Ok::<_, !>(f(span, var))).into_ok()
self.try_map_var_refs(|span, var| Ok::<_, Infallible>(f(span, var))).unwrap()
}

/// resolve partially.
Expand Down
1 change: 0 additions & 1 deletion crates/simplexpr/src/lib.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
#![feature(try_blocks)]
#![feature(unwrap_infallible)]
#![feature(never_type)]

pub mod ast;
pub mod dynval;
Expand Down

0 comments on commit 6a76e2a

Please sign in to comment.