summaryrefslogtreecommitdiff
path: root/community/exa/exa-ascii-deprecated.patch
diff options
context:
space:
mode:
authorAndreas Baumann <mail@andreasbaumann.cc>2018-12-09 13:08:44 +0100
committerAndreas Baumann <mail@andreasbaumann.cc>2018-12-09 13:08:44 +0100
commitdb85b349ee8501669c0f8a61371b233e307a332b (patch)
tree7d4d15b5940078bbfd4653516f2e7a8d50d7c25d /community/exa/exa-ascii-deprecated.patch
parenta815a677084dcae8176fb3ada4b6b96cb0ec0fa3 (diff)
downloadpackages-db85b349ee8501669c0f8a61371b233e307a332b.tar.xz
community/exa: patching Ascii deprecation (fixed upstream)
Diffstat (limited to 'community/exa/exa-ascii-deprecated.patch')
-rw-r--r--community/exa/exa-ascii-deprecated.patch12
1 files changed, 12 insertions, 0 deletions
diff --git a/community/exa/exa-ascii-deprecated.patch b/community/exa/exa-ascii-deprecated.patch
new file mode 100644
index 00000000..e4cddd6a
--- /dev/null
+++ b/community/exa/exa-ascii-deprecated.patch
@@ -0,0 +1,12 @@
+diff -rauN exa/src/fs/file.rs exa-ascii-deprecated-patch/src/fs/file.rs
+--- exa/src/fs/file.rs 2018-12-09 12:48:21.137587385 +0100
++++ exa-ascii-deprecated-patch/src/fs/file.rs 2018-12-09 12:59:07.048431583 +0100
+@@ -95,8 +95,6 @@
+ /// against a pre-compiled list of extensions which are known to only exist
+ /// within ASCII, so it’s alright.
+ fn ext(path: &Path) -> Option<String> {
+- use std::ascii::AsciiExt;
+-
+ let name = match path.file_name() {
+ Some(f) => f.to_string_lossy().to_string(),
+ None => return None,