resolve initial compilation issues

This commit is contained in:
little-bobby-tables
2017-08-19 16:35:58 +07:00
parent e5a5472b1e
commit 7abde0e7c6
4 changed files with 13 additions and 18 deletions

View File

@ -204,13 +204,13 @@ macro_rules! color_set_get {
pub fn $get(&self) -> f64 {
unsafe { ::bindings::$c_get(self.wand) }
}
pub fn $get_quantum(&self) -> u16 {
pub fn $get_quantum(&self) -> bindings::Quantum {
unsafe { ::bindings::$c_get_quantum(self.wand) }
}
pub fn $set(&mut self, v: f64) {
unsafe { ::bindings::$c_set(self.wand, v) }
}
pub fn $set_quantum(&mut self, v: u16) {
pub fn $set_quantum(&mut self, v: bindings::Quantum) {
unsafe { ::bindings::$c_set_quantum(self.wand, v) }
}
)*