We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
is_absolute_path
1 parent ff2eff3 commit 16bd0dcCopy full SHA for 16bd0dc
src/cred.rs
@@ -306,12 +306,6 @@ impl CredentialHelper {
306
}
307
308
309
- fn is_absolute_path(path: &str) -> bool {
310
- path.starts_with('/')
311
- || path.starts_with('\\')
312
- || cfg!(windows) && path.chars().nth(1).is_some_and(|x| x == ':')
313
- }
314
-
315
fn exact_key(&self, name: &str) -> String {
316
format!("credential.{}.{}", self.url, name)
317
@@ -487,6 +481,12 @@ impl CredentialHelper {
487
481
488
482
489
483
484
+fn is_absolute_path(path: &str) -> bool {
485
+ path.starts_with('/')
486
+ || path.starts_with('\\')
+ || cfg!(windows) && path.chars().nth(1).is_some_and(|x| x == ':')
+}
+
490
#[cfg(test)]
491
mod test {
492
use std::env;
0 commit comments