|
@@ -16,6 +16,7 @@ use termcolor::{Color, ColorChoice, ColorSpec, StandardStream, WriteColor};
|
|
/// "retina" icon. Specifically, returns true the the file stem ends with
|
|
/// "retina" icon. Specifically, returns true the the file stem ends with
|
|
/// "@2x" (a convention specified by the [Apple developer docs](
|
|
/// "@2x" (a convention specified by the [Apple developer docs](
|
|
/// https://developer.apple.com/library/mac/documentation/GraphicsAnimation/Conceptual/HighResolutionOSX/Optimizing/Optimizing.html)).
|
|
/// https://developer.apple.com/library/mac/documentation/GraphicsAnimation/Conceptual/HighResolutionOSX/Optimizing/Optimizing.html)).
|
|
|
|
+#[allow(dead_code)]
|
|
pub fn is_retina<P: AsRef<Path>>(path: P) -> bool {
|
|
pub fn is_retina<P: AsRef<Path>>(path: P) -> bool {
|
|
path
|
|
path
|
|
.as_ref()
|
|
.as_ref()
|