Skip to content
This repository has been archived by the owner on Mar 13, 2024. It is now read-only.

Commit

Permalink
Clippy lints
Browse files Browse the repository at this point in the history
  • Loading branch information
Cypher1 committed Aug 19, 2022
1 parent a4506e6 commit 43a461c
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions ibis/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -36,14 +36,14 @@ shadow!(build);
#[macro_export]
macro_rules! ent {
($fmt: expr) => {
Ent::by_type(crate::type_parser_cache::read_type($fmt))
Ent::by_type($crate::type_parser_cache::read_type($fmt))
};
}

#[macro_export]
macro_rules! apply {
($type: expr) => {
crate::ent!($type)
$crate::ent!($type)
};
($type: expr, $($arg: expr),*) => {
{{
Expand Down
4 changes: 2 additions & 2 deletions ibis/src/type_struct.rs
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ impl std::fmt::Display for Type {
format_arg_set(f, ", ", &self.args)?;
write!(f, "}}")
} else {
let res = write!(
write!(
f,
"{}",
if self.name == UNIVERSAL {
Expand All @@ -93,7 +93,7 @@ impl std::fmt::Display for Type {
}
)?;
if self.args.is_empty() {
Ok(res)
Ok(())
} else {
write!(f, "(")?;
format_arg_set(f, ", ", &self.args)?;
Expand Down
2 changes: 1 addition & 1 deletion ibis/src/util/bimap.rs
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ use std::hash::Hash;
#[macro_export]
macro_rules! bimap {
() => {
crate::util::BiMap::new()
$crate::util::BiMap::new()
};
( $( $key: expr => $value: expr ),* $(,)?) => {
{
Expand Down

0 comments on commit 43a461c

Please sign in to comment.