mirror of
https://github.com/servo/servo.git
synced 2025-08-04 21:20:23 +01:00
Omit the 'ServoUrl()' wrapping in ServoUrl's Debug implementation.
This commit is contained in:
parent
80c6383140
commit
ce496472f8
1 changed files with 7 additions and 1 deletions
|
@ -23,7 +23,7 @@ use std::path::Path;
|
||||||
use std::sync::Arc;
|
use std::sync::Arc;
|
||||||
use url::{Url, Origin, Position};
|
use url::{Url, Origin, Position};
|
||||||
|
|
||||||
#[derive(Debug, Clone, PartialEq, Eq, PartialOrd, Ord, Hash)]
|
#[derive(Clone, PartialEq, Eq, PartialOrd, Ord, Hash)]
|
||||||
#[cfg_attr(feature = "servo", derive(HeapSizeOf, Serialize, Deserialize))]
|
#[cfg_attr(feature = "servo", derive(HeapSizeOf, Serialize, Deserialize))]
|
||||||
pub struct ServoUrl(Arc<Url>);
|
pub struct ServoUrl(Arc<Url>);
|
||||||
|
|
||||||
|
@ -158,6 +158,12 @@ impl fmt::Display for ServoUrl {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
impl fmt::Debug for ServoUrl {
|
||||||
|
fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result {
|
||||||
|
self.0.fmt(formatter)
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
impl Index<RangeFull> for ServoUrl {
|
impl Index<RangeFull> for ServoUrl {
|
||||||
type Output = str;
|
type Output = str;
|
||||||
fn index(&self, _: RangeFull) -> &str {
|
fn index(&self, _: RangeFull) -> &str {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue