Skip to content

Commit

Permalink
Upgrade Rust to v1.50.0
Browse files Browse the repository at this point in the history
  • Loading branch information
stepchowfun committed Feb 26, 2021
1 parent f33e65d commit bb7f1fc
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/evaluator.rs
Original file line number Diff line number Diff line change
Expand Up @@ -603,7 +603,7 @@ pub fn step<'a>(term: &Term<'a>) -> Option<Term<'a>> {

// This function returns whether a term is a value. Note that a neutral term (e.g., a variable) is
// not considered a value.
pub fn is_value<'a>(term: &Term<'a>) -> bool {
pub fn is_value(term: &Term) -> bool {
match term.variant {
Type
| Lambda(_, _, _, _)
Expand Down
2 changes: 1 addition & 1 deletion src/term.rs
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,7 @@ impl<'a> Display for Variant<'a> {

// Convert a term to a string with surrounding parentheses, except for simple terms that cause no
// parsing ambiguities in any context.
fn group<'a>(term: &Term<'a>) -> String {
fn group(term: &Term) -> String {
match &term.variant {
Variant::Unifier(subterm, _) => {
// We `clone` the borrowed `subterm` to avoid holding the dynamic borrow for too long.
Expand Down
2 changes: 1 addition & 1 deletion toast.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ tasks:
command: |
set -euo pipefail
curl https://sh.rustup.rs -sSf |
sh -s -- -y --default-toolchain 1.49.0
sh -s -- -y --default-toolchain 1.50.0
. $HOME/.cargo/env
rustup component add clippy
rustup component add rustfmt
Expand Down

0 comments on commit bb7f1fc

Please sign in to comment.