diff --git a/fluent-bundle/benches/resolver.rs b/fluent-bundle/benches/resolver.rs index 49b83fd2..a024da05 100644 --- a/fluent-bundle/benches/resolver.rs +++ b/fluent-bundle/benches/resolver.rs @@ -103,7 +103,7 @@ fn resolver_bench(c: &mut Criterion) { .add_resource(res.clone()) .expect("Couldn't add FluentResource to the FluentBundle"); add_functions(name, &mut bundle); - }) + }); }); } group.finish(); @@ -130,7 +130,7 @@ fn resolver_bench(c: &mut Criterion) { } assert!(errors.is_empty(), "Resolver errors: {:#?}", errors); } - }) + }); }); } group.finish(); @@ -153,7 +153,7 @@ fn resolver_bench(c: &mut Criterion) { } assert!(errors.is_empty(), "Resolver errors: {:#?}", errors); } - }) + }); }); } group.finish(); diff --git a/fluent-fallback/src/cache.rs b/fluent-fallback/src/cache.rs index 2e80fbb1..a8b6ff52 100644 --- a/fluent-fallback/src/cache.rs +++ b/fluent-fallback/src/cache.rs @@ -185,7 +185,7 @@ where let pin = unsafe { Pin::new_unchecked(&self.stream) }; unsafe { PinMut::as_mut(&mut pin.borrow_mut()).get_unchecked_mut() } .prefetch_async() - .await + .await; } } diff --git a/fluent-fallback/src/localization.rs b/fluent-fallback/src/localization.rs index df16e268..a7054329 100644 --- a/fluent-fallback/src/localization.rs +++ b/fluent-fallback/src/localization.rs @@ -115,7 +115,7 @@ where { pub async fn prefetch_async(&mut self) { let bundles = self.bundles(); - bundles.prefetch_async().await + bundles.prefetch_async().await; } } diff --git a/fluent-resmgr/src/resource_manager.rs b/fluent-resmgr/src/resource_manager.rs index 166feed2..1de04eda 100644 --- a/fluent-resmgr/src/resource_manager.rs +++ b/fluent-resmgr/src/resource_manager.rs @@ -125,7 +125,7 @@ impl ResourceManager { Ok(resource) => { if let Err(errs) = bundle.add_resource(resource) { for error in errs { - errors.push(ResourceManagerError::Fluent(error)) + errors.push(ResourceManagerError::Fluent(error)); } } } diff --git a/fluent-syntax/benches/parser.rs b/fluent-syntax/benches/parser.rs index 9a174dec..2397044d 100644 --- a/fluent-syntax/benches/parser.rs +++ b/fluent-syntax/benches/parser.rs @@ -84,7 +84,7 @@ fn parse_bench(c: &mut Criterion) { for source in ctx { parse_runtime(source.as_str()).expect("Parsing of the FTL failed."); } - }) + }); }); } diff --git a/fluent-syntax/src/parser/pattern.rs b/fluent-syntax/src/parser/pattern.rs index 85c8925e..6b313ea8 100644 --- a/fluent-syntax/src/parser/pattern.rs +++ b/fluent-syntax/src/parser/pattern.rs @@ -193,7 +193,7 @@ where } _ => { text_element_type = TextElementType::NonBlank; - self.ptr += 1 + self.ptr += 1; } } } diff --git a/fluent-syntax/src/serializer.rs b/fluent-syntax/src/serializer.rs index 038b5bcd..a3442429 100644 --- a/fluent-syntax/src/serializer.rs +++ b/fluent-syntax/src/serializer.rs @@ -89,7 +89,7 @@ impl Serializer { Entry::ResourceComment(comment) => self.serialize_free_comment(comment, "###"), Entry::Junk { content } => { if self.options.with_junk { - self.serialize_junk(content.as_ref()) + self.serialize_junk(content.as_ref()); } } }; @@ -103,7 +103,7 @@ impl Serializer { } fn serialize_junk(&mut self, junk: &str) { - self.writer.write_literal(junk) + self.writer.write_literal(junk); } fn serialize_free_comment<'s, S: Slice<'s>>(&mut self, comment: &Comment, prefix: &str) { @@ -232,7 +232,7 @@ impl Serializer { match expr { Expression::Inline(inline) => self.serialize_inline_expression(inline), Expression::Select { selector, variants } => { - self.serialize_select_expression(selector, variants) + self.serialize_select_expression(selector, variants); } } } @@ -320,7 +320,7 @@ impl Serializer { fn serialize_variant_key<'s, S: Slice<'s>>(&mut self, key: &VariantKey) { match key { VariantKey::NumberLiteral { value } | VariantKey::Identifier { name: value } => { - self.writer.write_literal(value.as_ref()) + self.writer.write_literal(value.as_ref()); } } }