fix clippy
This commit is contained in:
@@ -125,7 +125,7 @@ mod libraries {
|
|||||||
}
|
}
|
||||||
|
|
||||||
pub(crate) fn get(name: &str) -> Option<&'static str> {
|
pub(crate) fn get(name: &str) -> Option<&'static str> {
|
||||||
LIBRARIES.with(|libs| libs.get(name).map(|&lib| lib))
|
LIBRARIES.with(|libs| libs.get(name).copied())
|
||||||
}
|
}
|
||||||
|
|
||||||
#[cfg(test)]
|
#[cfg(test)]
|
||||||
|
|||||||
@@ -38,7 +38,7 @@ pub fn write_prolog_value_as_json<W: Write>(
|
|||||||
)
|
)
|
||||||
} else {
|
} else {
|
||||||
//return valid json string
|
//return valid json string
|
||||||
writer.write_str(&s)
|
writer.write_str(s)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
Value::List(l) => {
|
Value::List(l) => {
|
||||||
|
|||||||
Reference in New Issue
Block a user