tools/rc/to_f64.rs
author Wuzzy <Wuzzy@disroot.org>
Mon, 19 Jun 2023 14:09:37 +0200
changeset 15990 79b1129b4d03
parent 15981 5aed6c0b63e2
permissions -rw-r--r--
Fix game freezing if Format arg contains '%1', '%2', etc. (bug #851)
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
15981
5aed6c0b63e2 Start PoC of pas2rust conversion routine
unc0rr
parents:
diff changeset
     1
pub fn to_f64<T: Into<f64>>(v: T) -> f64 {
5aed6c0b63e2 Start PoC of pas2rust conversion routine
unc0rr
parents:
diff changeset
     2
    v.into()
5aed6c0b63e2 Start PoC of pas2rust conversion routine
unc0rr
parents:
diff changeset
     3
}
5aed6c0b63e2 Start PoC of pas2rust conversion routine
unc0rr
parents:
diff changeset
     4