Some fixes
This commit is contained in:
parent
1fe15b95cb
commit
3da99c5d8a
@ -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 @@ impl<T: Writer> Terminal<T> for TerminfoTerminal<T> {
|
||||
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() {
|
||||
|
Loading…
x
Reference in New Issue
Block a user