mirror of
https://github.com/dnlbauer/xdrfile.git
synced 2026-09-11 06:35:30 +00:00
Suppressed or corrected hints and warnings
This commit is contained in:
@@ -1,5 +1,6 @@
|
|||||||
|
#![allow(non_upper_case_globals, non_camel_case_types)]
|
||||||
|
|
||||||
pub mod xdr_seek;
|
pub mod xdr_seek;
|
||||||
#[allow(non_upper_case_globals)]
|
|
||||||
pub mod xdrfile;
|
pub mod xdrfile;
|
||||||
pub mod xdrfile_trr;
|
pub mod xdrfile_trr;
|
||||||
pub mod xdrfile_xtc;
|
pub mod xdrfile_xtc;
|
||||||
|
|||||||
@@ -53,7 +53,7 @@ impl Frame {
|
|||||||
/// Creates a frame with the given capacity
|
/// Creates a frame with the given capacity
|
||||||
pub fn with_capacity(num_atoms: u32) -> Frame {
|
pub fn with_capacity(num_atoms: u32) -> Frame {
|
||||||
Frame {
|
Frame {
|
||||||
num_atoms: num_atoms,
|
num_atoms,
|
||||||
coords: vec![[0.0, 0.0, 0.0]; num_atoms as usize],
|
coords: vec![[0.0, 0.0, 0.0]; num_atoms as usize],
|
||||||
..Default::default()
|
..Default::default()
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -104,6 +104,7 @@ fn path_to_cstring(path: &Path) -> CString {
|
|||||||
/// A safe wrapper around the c implementation of an XDRFile
|
/// A safe wrapper around the c implementation of an XDRFile
|
||||||
struct XDRFile {
|
struct XDRFile {
|
||||||
xdrfile: *mut XDRFILE,
|
xdrfile: *mut XDRFILE,
|
||||||
|
#[allow(dead_code)]
|
||||||
filemode: FileMode,
|
filemode: FileMode,
|
||||||
path: String,
|
path: String,
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user