浏览代码

chore: allow dead code on bundler::bundle::common::is_retina

Lucas Nogueira 4 年之前
父节点
当前提交
c827604b4a
共有 1 个文件被更改,包括 1 次插入0 次删除
  1. 1 0
      tooling/bundler/src/bundle/common.rs

+ 1 - 0
tooling/bundler/src/bundle/common.rs

@@ -16,6 +16,7 @@ use termcolor::{Color, ColorChoice, ColorSpec, StandardStream, WriteColor};
 /// "retina" icon.  Specifically, returns true the the file stem ends with
 /// "@2x" (a convention specified by the [Apple developer docs](
 /// 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 {
   path
     .as_ref()