1
0
mirror of https://github.com/google/comprehensive-rust.git synced 2025-03-25 15:38:01 +02:00

cargo fmt

This commit is contained in:
Andrew Walbran 2023-03-16 15:54:24 +00:00
parent d1ca434023
commit f0b59d0818
2 changed files with 2 additions and 3 deletions

View File

@ -91,8 +91,7 @@ fn create_catalog(ctx: &RenderContext) -> anyhow::Result<Catalog> {
Some(path) => ctx.config.book.src.join(path), Some(path) => ctx.config.book.src.join(path),
None => continue, None => continue,
}; };
for msg in i18n_helpers::extract_msgs(&chapter.content) for msg in i18n_helpers::extract_msgs(&chapter.content) {
{
let source = format!("{}:{}", path.display(), msg.line_number()); let source = format!("{}:{}", path.display(), msg.line_number());
add_message(&mut catalog, msg.text(&chapter.content), &source); add_message(&mut catalog, msg.text(&chapter.content), &source);
} }