mirror of
https://github.com/rust-lang/rust.git
synced 2026-05-04 18:40:57 +03:00
Some fixes
This commit is contained in:
+1
-1
@@ -21,7 +21,7 @@
|
||||
//! extern crate num;
|
||||
//!
|
||||
//! use num::bigint::BigInt;
|
||||
//! use num::rational::{Ratio, BigRational}:
|
||||
//! use num::rational::{Ratio, BigRational};
|
||||
//!
|
||||
//! fn approx_sqrt(number: u64, iterations: uint) -> BigRational {
|
||||
//! let start: Ratio<BigInt> = Ratio::from_integer(FromPrimitive::from_u64(number).unwrap());
|
||||
|
||||
@@ -184,7 +184,7 @@ fn reset(&mut self) -> IoResult<()> {
|
||||
cap = self.ti.strings.find_equiv(&("op"));
|
||||
}
|
||||
}
|
||||
let s = cap.map_or(Err("can't find terminfo capability `sgr0`".to_owned()), |op| {
|
||||
let s = cap.map_or(Err("can't find terminfo capability `sgr0`".to_strbuf()), |op| {
|
||||
expand(op.as_slice(), [], &mut Variables::new())
|
||||
});
|
||||
if s.is_ok() {
|
||||
|
||||
Reference in New Issue
Block a user