From 55e02fd9191e515661c4f93894cc8aeef1bf12e7 Mon Sep 17 00:00:00 2001 From: John Date: Fri, 24 Oct 2025 05:23:53 -0400 Subject: [PATCH] conlang: updated rustfmt --- compiler/cl-repl/examples/identify_tokens.rs | 2 +- compiler/cl-repl/src/lib.rs | 2 +- compiler/cl-typeck/src/format_utils.rs | 5 +---- 3 files changed, 3 insertions(+), 6 deletions(-) diff --git a/compiler/cl-repl/examples/identify_tokens.rs b/compiler/cl-repl/examples/identify_tokens.rs index 42cc710..9d20e1e 100644 --- a/compiler/cl-repl/examples/identify_tokens.rs +++ b/compiler/cl-repl/examples/identify_tokens.rs @@ -4,7 +4,7 @@ use cl_lexer::Lexer; use cl_token::Token; use std::{ error::Error, - io::{stdin, IsTerminal, Read}, + io::{IsTerminal, Read, stdin}, path::{Path, PathBuf}, }; diff --git a/compiler/cl-repl/src/lib.rs b/compiler/cl-repl/src/lib.rs index c35852a..65f9f08 100644 --- a/compiler/cl-repl/src/lib.rs +++ b/compiler/cl-repl/src/lib.rs @@ -1,5 +1,5 @@ //! The Conlang REPL, based on [repline] -//! +//! //! Uses [argwerk] for argument parsing. #![warn(clippy::all)] diff --git a/compiler/cl-typeck/src/format_utils.rs b/compiler/cl-typeck/src/format_utils.rs index dbfc349..bdb6ce4 100644 --- a/compiler/cl-typeck/src/format_utils.rs +++ b/compiler/cl-typeck/src/format_utils.rs @@ -2,10 +2,7 @@ pub use cl_ast::format::*; use std::{fmt, iter}; /// Separates the items yielded by iterating the provided function -pub const fn separate<'f, 's, Item, F, W>( - sep: &'s str, - t: F, -) -> impl FnOnce(W) -> fmt::Result + 's +pub const fn separate<'f, 's, Item, F, W>(sep: &'s str, t: F) -> impl FnOnce(W) -> fmt::Result + 's where Item: FnMut(&mut W) -> fmt::Result, F: FnMut() -> Option + 's,