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 @@ -306,7 +306,7 @@ fn decompress_zlib(input: &[u8], output: &mut [u8]) -> Option<()> {
306
306
}
307
307
}
308
308
309
- const DEBUG_PATH : & [ u8 ] = b "/usr/lib/debug";
309
+ const DEBUG_PATH : & str = "/usr/lib/debug" ;
310
310
311
311
fn debug_path_exists ( ) -> bool {
312
312
cfg_if:: cfg_if! {
@@ -316,7 +316,7 @@ fn debug_path_exists() -> bool {
316
316
317
317
let mut exists = DEBUG_PATH_EXISTS . load( Ordering :: Relaxed ) ;
318
318
if exists == 0 {
319
- exists = if Path :: new( OsStr :: from_bytes ( DEBUG_PATH ) ) . is_dir( ) {
319
+ exists = if Path :: new( DEBUG_PATH ) . is_dir( ) {
320
320
1
321
321
} else {
322
322
2
@@ -397,7 +397,7 @@ fn locate_debuglink(path: &Path, filename: &[u8]) -> Option<PathBuf> {
397
397
if debug_path_exists ( ) {
398
398
// Try "/usr/lib/debug/parent/filename"
399
399
f. clear ( ) ;
400
- f. push ( OsStr :: from_bytes ( DEBUG_PATH ) ) ;
400
+ f. push ( DEBUG_PATH ) ;
401
401
f. push ( parent. strip_prefix ( "/" ) . unwrap ( ) ) ;
402
402
f. push ( filename) ;
403
403
if f. is_file ( ) {
You can’t perform that action at this time.
0 commit comments