mirror of
https://github.com/uutils/coreutils
synced 2024-12-16 16:22:40 +00:00
Merge pull request #450 from skv-headless/update_rust-crypto
Update rust crypto
This commit is contained in:
commit
274b624a34
9 changed files with 11 additions and 11 deletions
2
deps/rust-crypto
vendored
2
deps/rust-crypto
vendored
|
@ -1 +1 @@
|
|||
Subproject commit 942e60ec3281ee83b6dc1fdcf7a71d21436bcda9
|
||||
Subproject commit 314d87895b6f41261b17e6302c13f1cb2fdf8809
|
|
@ -28,7 +28,7 @@ pub fn from_str(string: &str) -> Result<f64, String> {
|
|||
}
|
||||
}
|
||||
};
|
||||
match ::std::from_str::from_str::<f64>(numstr) {
|
||||
match ::std::str::from_str::<f64>(numstr) {
|
||||
Some(m) => Ok(m * times as f64),
|
||||
None => Err(format!("invalid time interval '{}'", string))
|
||||
}
|
||||
|
|
|
@ -15,7 +15,7 @@ pub struct Range {
|
|||
pub high: uint,
|
||||
}
|
||||
|
||||
impl std::from_str::FromStr for Range {
|
||||
impl std::str::FromStr for Range {
|
||||
fn from_str(s: &str) -> Option<Range> {
|
||||
use std::uint::MAX;
|
||||
|
||||
|
|
|
@ -15,7 +15,7 @@ extern crate getopts;
|
|||
extern crate libc;
|
||||
|
||||
use std::io;
|
||||
use std::from_str;
|
||||
use std::str::from_str;
|
||||
|
||||
#[path = "../common/util.rs"]
|
||||
mod util;
|
||||
|
@ -29,7 +29,7 @@ fn tabstops_parse(s: String) -> Vec<uint> {
|
|||
let words = s.as_slice().split(',').collect::<Vec<&str>>();
|
||||
|
||||
let nums = words.into_iter()
|
||||
.map(|sn| from_str::from_str::<uint>(sn)
|
||||
.map(|sn| from_str::<uint>(sn)
|
||||
.unwrap_or_else(
|
||||
|| crash!(1, "{}\n", "tab size contains invalid character(s)"))
|
||||
)
|
||||
|
|
|
@ -19,7 +19,7 @@ extern crate serialize;
|
|||
|
||||
#[phase(plugin, link)] extern crate log;
|
||||
|
||||
use std::from_str::from_str;
|
||||
use std::str::from_str;
|
||||
use std::io::process::Process;
|
||||
|
||||
use getopts::{
|
||||
|
|
|
@ -15,7 +15,7 @@ extern crate getopts;
|
|||
extern crate libc;
|
||||
|
||||
use std::cmp;
|
||||
use std::from_str::from_str;
|
||||
use std::str::from_str;
|
||||
use std::io;
|
||||
use std::io::IoResult;
|
||||
use std::iter::{range_inclusive, RangeInclusive};
|
||||
|
|
|
@ -15,7 +15,7 @@ extern crate getopts;
|
|||
extern crate libc;
|
||||
|
||||
use std::io;
|
||||
use std::from_str;
|
||||
use std::str::from_str;
|
||||
|
||||
#[path = "../common/util.rs"]
|
||||
mod util;
|
||||
|
@ -29,7 +29,7 @@ fn tabstops_parse(s: String) -> Vec<uint> {
|
|||
let words = s.as_slice().split(',').collect::<Vec<&str>>();
|
||||
|
||||
let nums = words.into_iter()
|
||||
.map(|sn| from_str::from_str::<uint>(sn)
|
||||
.map(|sn| from_str::<uint>(sn)
|
||||
.unwrap_or_else(
|
||||
|| crash!(1, "{}\n", "tab size contains invalid character(s)"))
|
||||
)
|
||||
|
|
|
@ -15,7 +15,7 @@ extern crate getopts;
|
|||
|
||||
use std::ascii::OwnedAsciiExt;
|
||||
use std::cmp::min;
|
||||
use std::from_str::FromStr;
|
||||
use std::str::FromStr;
|
||||
use std::io;
|
||||
|
||||
#[path = "../common/util.rs"]
|
||||
|
|
|
@ -20,7 +20,7 @@ extern crate libc;
|
|||
use std::mem::transmute;
|
||||
use std::io::{print, File};
|
||||
use std::ptr::{null_mut, null};
|
||||
use std::from_str::from_str;
|
||||
use std::str::from_str;
|
||||
use libc::{time_t, c_double, c_int, c_char};
|
||||
use c_types::c_tm;
|
||||
use utmpx::*;
|
||||
|
|
Loading…
Reference in a new issue