Fix a typo in calculating overhead for fn args
This commit is contained in:
parent
6554e7c206
commit
ef84319e47
@ -2284,8 +2284,7 @@ fn compute_budgets_for_args(
|
||||
}
|
||||
IndentStyle::Visual => {
|
||||
let indent = indent + result.len() + 1;
|
||||
let multi_line_overhead =
|
||||
indent.width() + result.len() + if newline_brace { 2 } else { 4 };
|
||||
let multi_line_overhead = indent.width() + if newline_brace { 2 } else { 4 };
|
||||
let budget =
|
||||
try_opt!(context.config.max_width().checked_sub(multi_line_overhead));
|
||||
(indent, budget)
|
||||
|
@ -8,3 +8,25 @@ fn lorem(ipsum: usize) {}
|
||||
fn lorem(ipsum: usize, dolor: usize, sit: usize, amet: usize, consectetur: usize, adipiscing: usize, elit: usize) {
|
||||
// body
|
||||
}
|
||||
|
||||
// #1922
|
||||
extern "C" {
|
||||
pub fn LAPACKE_csytrs_rook_work(matrix_layout: c_int,
|
||||
uplo: c_char,
|
||||
n: lapack_int,
|
||||
nrhs: lapack_int,
|
||||
a: *const lapack_complex_float,
|
||||
lda: lapack_int, ipiv: *const lapack_int,
|
||||
b: *mut lapack_complex_float,
|
||||
ldb: lapack_int
|
||||
)-> lapack_int;
|
||||
|
||||
pub fn LAPACKE_csytrs_rook_work(matrix_layout: c_int,
|
||||
uplo: c_char,
|
||||
n: lapack_int,
|
||||
nrhs: lapack_int,
|
||||
lda: lapack_int, ipiv: *const lapack_int,
|
||||
b: *mut lapack_complex_float,
|
||||
ldb: lapack_int
|
||||
) -> lapack_int;
|
||||
}
|
||||
|
@ -14,3 +14,27 @@ fn lorem(ipsum: usize,
|
||||
elit: usize) {
|
||||
// body
|
||||
}
|
||||
|
||||
// #1922
|
||||
extern "C" {
|
||||
pub fn LAPACKE_csytrs_rook_work(matrix_layout: c_int,
|
||||
uplo: c_char,
|
||||
n: lapack_int,
|
||||
nrhs: lapack_int,
|
||||
a: *const lapack_complex_float,
|
||||
lda: lapack_int,
|
||||
ipiv: *const lapack_int,
|
||||
b: *mut lapack_complex_float,
|
||||
ldb: lapack_int)
|
||||
-> lapack_int;
|
||||
|
||||
pub fn LAPACKE_csytrs_rook_work(matrix_layout: c_int,
|
||||
uplo: c_char,
|
||||
n: lapack_int,
|
||||
nrhs: lapack_int,
|
||||
lda: lapack_int,
|
||||
ipiv: *const lapack_int,
|
||||
b: *mut lapack_complex_float,
|
||||
ldb: lapack_int)
|
||||
-> lapack_int;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user