Skip to content

Commit

Permalink
formatted files according to rustfmt
Browse files Browse the repository at this point in the history
  • Loading branch information
mvisani committed Aug 22, 2024
1 parent b1c9251 commit 7fa3b06
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
8 changes: 5 additions & 3 deletions src/graphmol/atom.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
use rdkit_sys::ro_mol_ffi;
use std::{fmt::Formatter, pin::Pin};

use rdkit_sys::ro_mol_ffi;

pub struct Atom<'a> {
ptr: Pin<&'a mut ro_mol_ffi::Atom>,
}
Expand Down Expand Up @@ -71,8 +72,9 @@ impl<'a> Atom<'a> {
}

// We create a generic function set_prop that can set any property type.
// if the property type is an integer, we call set_int_prop, if it is a float, we call set_float_prop,
// if it is a boolean, we call set_bool_prop and if it is a string, we call set_prop.
// if the property type is an integer, we call set_int_prop, if it is a float,
// we call set_float_prop, if it is a boolean, we call set_bool_prop and if
// it is a string, we call set_prop.
pub fn set_prop<T>(&mut self, key: &str, value: T)
where
T: SetPropValue,
Expand Down
1 change: 1 addition & 0 deletions src/periodic_table.rs
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ impl PeriodicTable {
pub fn get_valence_list(atomic_number: u32) -> &'static CxxVector<i32> {
rdkit_sys::periodic_table_ffi::get_valence_list(atomic_number)
}

pub fn get_most_common_isotope_mass(atom: &str) -> f64 {
let_cxx_string!(atom_cxx_string = atom);
rdkit_sys::periodic_table_ffi::get_most_common_isotope_mass(&atom_cxx_string)
Expand Down

0 comments on commit 7fa3b06

Please sign in to comment.