Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix uninlined_format_args #1428

Merged
merged 1 commit into from Dec 23, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
2 changes: 1 addition & 1 deletion examples/persons/main.rs
Expand Up @@ -34,7 +34,7 @@
for person in rows {
match person {
Ok(p) => println!("ID: {}, Name: {}", p.id, p.name),
Err(e) => eprintln!("Error: {:?}", e),
Err(e) => eprintln!("Error: {e:?}"),

Check warning on line 37 in examples/persons/main.rs

View check run for this annotation

Codecov / codecov/patch

examples/persons/main.rs#L37

Added line #L37 was not covered by tests
}
}

Expand Down
5 changes: 1 addition & 4 deletions libsqlite3-sys/build.rs
Expand Up @@ -350,10 +350,7 @@
HeaderLocation::FromEnvironment => {
let prefix = env_prefix();
let mut header = env::var(format!("{prefix}_INCLUDE_DIR")).unwrap_or_else(|_| {
panic!(
"{}_INCLUDE_DIR must be set if {}_LIB_DIR is set",
prefix, prefix
)
panic!("{prefix}_INCLUDE_DIR must be set if {prefix}_LIB_DIR is set")

Check warning on line 353 in libsqlite3-sys/build.rs

View check run for this annotation

Codecov / codecov/patch

libsqlite3-sys/build.rs#L353

Added line #L353 was not covered by tests
});
header.push_str(if cfg!(feature = "loadable_extension") {
"/sqlite3ext.h"
Expand Down
2 changes: 1 addition & 1 deletion rusqlite-macros/src/lib.rs
Expand Up @@ -12,7 +12,7 @@ use sqlite3_parser::lexer::sql::Parser;
#[doc(hidden)]
#[proc_macro]
pub fn __bind(input: TokenStream) -> TokenStream {
try_bind(input).unwrap_or_else(|msg| parse_ts(&format!("compile_error!({:?})", msg)))
try_bind(input).unwrap_or_else(|msg| parse_ts(&format!("compile_error!({msg:?})")))
}

type Result<T> = std::result::Result<T, String>;
Expand Down