Ran cargo fmt on the code base, looks better

cargo test passes
This commit is contained in:
Nathan Fiedler
2018-10-06 15:37:17 -07:00
parent 8a4fced836
commit bd34f145a2
9 changed files with 363 additions and 228 deletions

View File

@ -13,18 +13,24 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
use std::fmt;
use std::ffi::{CStr, CString};
use ::bindings;
use bindings;
#[cfg(target_os = "freebsd")]
use libc::size_t;
#[cfg(not(target_os = "freebsd"))]
use ::size_t;
use size_t;
use std::ffi::{CStr, CString};
use std::fmt;
wand_common!(
DrawingWand,
NewDrawingWand, ClearDrawingWand, IsDrawingWand, CloneDrawingWand, DestroyDrawingWand,
DrawClearException, DrawGetExceptionType, DrawGetException
NewDrawingWand,
ClearDrawingWand,
IsDrawingWand,
CloneDrawingWand,
DestroyDrawingWand,
DrawClearException,
DrawGetExceptionType,
DrawGetException
);
impl DrawingWand {
@ -42,7 +48,10 @@ impl DrawingWand {
);
string_set_get_unchecked!(
get_text_encoding, set_text_encoding, DrawGetTextEncoding, DrawSetTextEncoding
get_text_encoding,
set_text_encoding,
DrawGetTextEncoding,
DrawSetTextEncoding
);
pixel_set_get!(