Name arguments directly instead of aping the Google C++ style guide.

This commit was merged in pull request #9.
This commit is contained in:
2025-12-15 12:34:51 -05:00
parent 3a9ea4f0c7
commit 9444c56e15

View File

@@ -38,11 +38,13 @@ fn xlfd_to_fc_pattern(xlfd: &str) -> Option<NonNull<x11::xft::FcPattern>> {
}
let name = xlfd.split(',').next().unwrap();
let ignore_scalable = 0;
let complete = 0;
NonNull::new(unsafe {
x11::xft::XftXlfdParse(
name.as_ptr(),
/*ignore_scalable=*/ 0,
/*complete=*/ 0,
ignore_scalable,
complete,
)
})
.or_else(|| {
@@ -50,8 +52,8 @@ fn xlfd_to_fc_pattern(xlfd: &str) -> Option<NonNull<x11::xft::FcPattern>> {
NonNull::new(unsafe {
x11::xft::XftXlfdParse(
DEFAULT_FONT_CSTR.as_ptr(),
/*ignore_scalable=*/ 0,
/*complete=*/ 0,
ignore_scalable,
complete,
)
})
})