Makes Clippy happy

pull/299/head
Tpt 2 years ago committed by Thomas Tanon
parent cda6b09d79
commit 7581d9a6b2
  1. 2
      lib/sparesults/src/csv.rs
  2. 1
      lib/src/lib.rs

@ -164,7 +164,7 @@ fn write_tsv_term<'a>(term: impl Into<TermRef<'a>>, sink: &mut impl Write) -> io
_ => sink.write_all(literal.to_string().as_bytes()),
},
xsd::INTEGER => {
if literal.value().bytes().all(|c| matches!(c, b'0'..=b'9')) {
if literal.value().bytes().all(|c| c.is_ascii_digit()) {
sink.write_all(literal.value().as_bytes())
} else {
sink.write_all(literal.to_string().as_bytes())

@ -48,7 +48,6 @@
clippy::large_digit_groups,
clippy::large_stack_arrays,
clippy::large_types_passed_by_value,
clippy::let_underscore_drop,
clippy::let_underscore_must_use,
clippy::let_unit_value,
clippy::linkedlist,

Loading…
Cancel
Save