Skip to content

Commit 23f1397

Browse files
committed
Fix clippy::uninlined_format_args lint warnings
1 parent 0920c90 commit 23f1397

File tree

1 file changed

+4
-6
lines changed

1 file changed

+4
-6
lines changed

src/lib.rs

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
use chrono::NaiveDate;
22
use fluent::FluentArgs;
3-
use fluent_bundle::concurrent::FluentBundle;
43
use fluent_bundle::FluentResource;
4+
use fluent_bundle::concurrent::FluentBundle;
55
use pyo3::exceptions::{PyFileNotFoundError, PyTypeError, PyValueError};
66
use pyo3::prelude::*;
77
use pyo3::types::{PyDate, PyDict, PyInt, PyList, PyString};
@@ -41,9 +41,8 @@ impl Bundle {
4141
Ok(resource) => resource,
4242
Err(_) if strict => {
4343
return Err(ParserError::new_err(format!(
44-
"Error when parsing {}.",
45-
file_path
46-
)))
44+
"Error when parsing {file_path}."
45+
)));
4746
}
4847
Err(error) => {
4948
// The first element of the error is the parsed resource, minus any
@@ -85,8 +84,7 @@ impl Bundle {
8584
let python_key = variable.0;
8685
if !python_key.is_instance_of::<PyString>() {
8786
return Err(PyTypeError::new_err(format!(
88-
"Variable key not a str, got {}.",
89-
python_key
87+
"Variable key not a str, got {python_key}."
9088
)));
9189
}
9290
let key = python_key.to_string();

0 commit comments

Comments
 (0)