From 48f129ea4965fcd206fa8a36f1ae352b467e4c7f Mon Sep 17 00:00:00 2001 From: Michael Gehring Date: Thu, 8 Jan 2015 14:03:00 +0100 Subject: [PATCH] std::char::UnicodeChar removal --- src/head/head.rs | 4 ++-- src/tail/tail.rs | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/head/head.rs b/src/head/head.rs index 5ff853df9..7e1bbd2ed 100644 --- a/src/head/head.rs +++ b/src/head/head.rs @@ -12,7 +12,7 @@ extern crate getopts; -use std::char::UnicodeChar; +use std::char::CharExt; use std::io::{stdin}; use std::io::{BufferedReader, BytesReader}; use std::io::fs::File; @@ -144,7 +144,7 @@ fn obsolete(options: &[String]) -> (Vec, Option) { let len = current.len(); for pos in range(1, len) { // Ensure that the argument is only made out of digits - if !UnicodeChar::is_numeric(current[pos] as char) { break; } + if !(current[pos] as char).is_numeric() { break; } // If this is the last number if pos == len - 1 { diff --git a/src/tail/tail.rs b/src/tail/tail.rs index 19b637abe..ae27794be 100644 --- a/src/tail/tail.rs +++ b/src/tail/tail.rs @@ -11,7 +11,7 @@ extern crate getopts; -use std::char::UnicodeChar; +use std::char::CharExt; use std::io::{stdin, stdout}; use std::io::{BufferedReader, BytesReader}; use std::io::fs::File; @@ -217,7 +217,7 @@ fn obsolete(options: &[String]) -> (Vec, Option) { let len = current.len(); for pos in range(1, len) { // Ensure that the argument is only made out of digits - if !UnicodeChar::is_numeric(current[pos] as char) { break; } + if !(current[pos] as char).is_numeric() { break; } // If this is the last number if pos == len - 1 {