Skip to content

Commit 2ebaaeb

Browse files
committed
---
yaml --- r: 137694 b: refs/heads/auto c: 6532a8c h: refs/heads/master v: v3
1 parent 2634fa4 commit 2ebaaeb

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ refs/heads/try3: 9387340aab40a73e8424c48fd42f0c521a4875c0
1313
refs/tags/release-0.3.1: 495bae036dfe5ec6ceafd3312b4dca48741e845b
1414
refs/tags/release-0.4: e828ea2080499553b97dfe33b3f4d472b4562ad7
1515
refs/tags/release-0.5: 7e3bcfbf21278251ee936ad53e92e9b719702d73
16-
refs/heads/auto: a64bb6623c0732e2b3f7f371f375dc70b58629b7
16+
refs/heads/auto: 6532a8c95ac5ac4d695d689a944ca725716fc0a4
1717
refs/heads/servo: af82457af293e2a842ba6b7759b70288da276167
1818
refs/tags/release-0.6: b4ebcfa1812664df5e142f0134a5faea3918544c
1919
refs/tags/0.1: b19db808c2793fe2976759b85a355c3ad8c8b336

branches/auto/src/liblog/lib.rs

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -188,10 +188,10 @@ mod directive;
188188

189189
/// Maximum logging level of a module that can be specified. Common logging
190190
/// levels are found in the DEBUG/INFO/WARN/ERROR constants.
191-
pub static MAX_LOG_LEVEL: u32 = 255;
191+
pub const MAX_LOG_LEVEL: u32 = 255;
192192

193193
/// The default logging level of a crate if no other is specified.
194-
static DEFAULT_LOG_LEVEL: u32 = 1;
194+
const DEFAULT_LOG_LEVEL: u32 = 1;
195195

196196
/// An unsafe constant that is the maximum logging level of any module
197197
/// specified. This is the first line of defense to determining whether a
@@ -205,13 +205,13 @@ static mut DIRECTIVES: *const Vec<directive::LogDirective> =
205205
static mut FILTER: *const Regex = 0 as *const _;
206206

207207
/// Debug log level
208-
pub static DEBUG: u32 = 4;
208+
pub const DEBUG: u32 = 4;
209209
/// Info log level
210-
pub static INFO: u32 = 3;
210+
pub const INFO: u32 = 3;
211211
/// Warn log level
212-
pub static WARN: u32 = 2;
212+
pub const WARN: u32 = 2;
213213
/// Error log level
214-
pub static ERROR: u32 = 1;
214+
pub const ERROR: u32 = 1;
215215

216216
local_data_key!(local_logger: Box<Logger + Send>)
217217

0 commit comments

Comments
 (0)