pkgid and make dead code public

This commit is contained in:
Corey Richardson 2013-12-17 20:44:28 -05:00
parent 97cf31f7e0
commit 2992fd5f51
2 changed files with 2 additions and 6 deletions

View file

@ -13,11 +13,7 @@
// See the License for the specific language governing permissions and // See the License for the specific language governing permissions and
// limitations under the License. // limitations under the License.
#[link(name = "cgmath", #[pkgid="cgmath#0.1"];
vers = "0.1",
author = "Brendan Zabarauskas",
url = "https://github.com/bjz/cgmath-rs")];
#[comment = "A mathematics library for computer graphics."]; #[comment = "A mathematics library for computer graphics."];
#[license = "ASL2"]; #[license = "ASL2"];
#[crate_type = "lib"]; #[crate_type = "lib"];

View file

@ -170,7 +170,7 @@ pub trait Vector
#[inline] fn comp_max(&self) -> S { self.fold(|a, b| a.max(b)) } #[inline] fn comp_max(&self) -> S { self.fold(|a, b| a.max(b)) }
} }
#[inline] fn dot<S: Primitive, Slice, V: Vector<S, Slice>>(a: V, b: V) -> S { a.dot(&b) } #[inline] pub fn dot<S: Primitive, Slice, V: Vector<S, Slice>>(a: V, b: V) -> S { a.dot(&b) }
impl<S: Primitive> One for Vec2<S> { #[inline] fn one() -> Vec2<S> { Vec2::ident() } } impl<S: Primitive> One for Vec2<S> { #[inline] fn one() -> Vec2<S> { Vec2::ident() } }
impl<S: Primitive> One for Vec3<S> { #[inline] fn one() -> Vec3<S> { Vec3::ident() } } impl<S: Primitive> One for Vec3<S> { #[inline] fn one() -> Vec3<S> { Vec3::ident() } }