diff --git a/src/cgmath/lib.rs b/src/cgmath/lib.rs index f8f73f5..500e83e 100644 --- a/src/cgmath/lib.rs +++ b/src/cgmath/lib.rs @@ -13,11 +13,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -#[link(name = "cgmath", - vers = "0.1", - author = "Brendan Zabarauskas", - url = "https://github.com/bjz/cgmath-rs")]; - +#[pkgid="cgmath#0.1"]; #[comment = "A mathematics library for computer graphics."]; #[license = "ASL2"]; #[crate_type = "lib"]; diff --git a/src/cgmath/vector.rs b/src/cgmath/vector.rs index dec7a07..13aeeda 100644 --- a/src/cgmath/vector.rs +++ b/src/cgmath/vector.rs @@ -170,7 +170,7 @@ pub trait Vector #[inline] fn comp_max(&self) -> S { self.fold(|a, b| a.max(b)) } } -#[inline] fn dot>(a: V, b: V) -> S { a.dot(&b) } +#[inline] pub fn dot>(a: V, b: V) -> S { a.dot(&b) } impl One for Vec2 { #[inline] fn one() -> Vec2 { Vec2::ident() } } impl One for Vec3 { #[inline] fn one() -> Vec3 { Vec3::ident() } }