From d203f274798efc12c912ccddc7491af037ca16fe Mon Sep 17 00:00:00 2001 From: "Michael S. Klishin" Date: Thu, 12 Apr 2012 06:09:54 +0400 Subject: [PATCH] Cosmetics --- src/monger/db.clj | 6 +++--- src/monger/result.clj | 5 ++--- 2 files changed, 5 insertions(+), 6 deletions(-) diff --git a/src/monger/db.clj b/src/monger/db.clj index d11e231..cb5f331 100644 --- a/src/monger/db.clj +++ b/src/monger/db.clj @@ -11,7 +11,8 @@ (ns monger.db (:refer-clojure :exclude [find remove count drop distinct empty?]) (:import [com.mongodb Mongo DB DBCollection]) - (:require [monger core])) + (:require monger.core) + (:use monger.conversion)) @@ -19,7 +20,7 @@ "Adds a new user for this db" ([^String username, ^chars password] (.addUser ^DB monger.core/*mongodb-database* username password)) - ([^DB database ^String username, ^chars password] + ([^DB database ^String username ^chars password] (.addUser ^DB database username password))) @@ -30,7 +31,6 @@ ([^DB database] (.dropDatabase ^DB database))) - (defn get-collection-names "Returns a set containing the names of all collections in this database." ([] diff --git a/src/monger/result.clj b/src/monger/result.clj index ffa238d..079df68 100644 --- a/src/monger/result.clj +++ b/src/monger/result.clj @@ -8,9 +8,8 @@ ;; You must not remove this notice, or any other, from this software. (ns monger.result - (:import [com.mongodb DBObject WriteResult MapReduceOutput] - [clojure.lang IPersistentMap]) - (:require [monger conversion])) + (:import [com.mongodb DBObject WriteResult MapReduceOutput]) + (:require monger.conversion)) ;;