File tree 1 file changed +3
-3
lines changed
1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -393,7 +393,7 @@ fn decompress_zstd(mut input: &[u8], mut output: &mut [u8]) -> Option<()> {
393
393
Some ( ( ) )
394
394
}
395
395
396
- const DEBUG_PATH : & [ u8 ] = b "/usr/lib/debug";
396
+ const DEBUG_PATH : & str = "/usr/lib/debug" ;
397
397
398
398
fn debug_path_exists ( ) -> bool {
399
399
cfg_if:: cfg_if! {
@@ -403,7 +403,7 @@ fn debug_path_exists() -> bool {
403
403
404
404
let mut exists = DEBUG_PATH_EXISTS . load( Ordering :: Relaxed ) ;
405
405
if exists == 0 {
406
- exists = if Path :: new( OsStr :: from_bytes ( DEBUG_PATH ) ) . is_dir( ) {
406
+ exists = if Path :: new( DEBUG_PATH ) . is_dir( ) {
407
407
1
408
408
} else {
409
409
2
@@ -484,7 +484,7 @@ fn locate_debuglink(path: &Path, filename: &[u8]) -> Option<PathBuf> {
484
484
if debug_path_exists ( ) {
485
485
// Try "/usr/lib/debug/parent/filename"
486
486
f. clear ( ) ;
487
- f. push ( OsStr :: from_bytes ( DEBUG_PATH ) ) ;
487
+ f. push ( DEBUG_PATH ) ;
488
488
f. push ( parent. strip_prefix ( "/" ) . unwrap ( ) ) ;
489
489
f. push ( filename) ;
490
490
if f. is_file ( ) {
You can’t perform that action at this time.
0 commit comments