conlang: updated rustfmt
This commit is contained in:
@@ -4,7 +4,7 @@ use cl_lexer::Lexer;
|
|||||||
use cl_token::Token;
|
use cl_token::Token;
|
||||||
use std::{
|
use std::{
|
||||||
error::Error,
|
error::Error,
|
||||||
io::{stdin, IsTerminal, Read},
|
io::{IsTerminal, Read, stdin},
|
||||||
path::{Path, PathBuf},
|
path::{Path, PathBuf},
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
@@ -2,10 +2,7 @@ pub use cl_ast::format::*;
|
|||||||
use std::{fmt, iter};
|
use std::{fmt, iter};
|
||||||
|
|
||||||
/// Separates the items yielded by iterating the provided function
|
/// Separates the items yielded by iterating the provided function
|
||||||
pub const fn separate<'f, 's, Item, F, W>(
|
pub const fn separate<'f, 's, Item, F, W>(sep: &'s str, t: F) -> impl FnOnce(W) -> fmt::Result + 's
|
||||||
sep: &'s str,
|
|
||||||
t: F,
|
|
||||||
) -> impl FnOnce(W) -> fmt::Result + 's
|
|
||||||
where
|
where
|
||||||
Item: FnMut(&mut W) -> fmt::Result,
|
Item: FnMut(&mut W) -> fmt::Result,
|
||||||
F: FnMut() -> Option<Item> + 's,
|
F: FnMut() -> Option<Item> + 's,
|
||||||
|
|||||||
Reference in New Issue
Block a user