pkgid and make dead code public
This commit is contained in:
parent
97cf31f7e0
commit
2992fd5f51
2 changed files with 2 additions and 6 deletions
|
@ -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"];
|
||||
|
|
|
@ -170,7 +170,7 @@ pub trait Vector
|
|||
#[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 Vec3<S> { #[inline] fn one() -> Vec3<S> { Vec3::ident() } }
|
||||
|
|
Loading…
Reference in a new issue