The c_flags macro now uses the attempt macro instead of the old try macro.
This commit is contained in:
parent
7fcc81dedb
commit
53c8590a40
@ -17,3 +17,6 @@ use_std = ["scribe/use_std"]
|
|||||||
|
|
||||||
[dependencies.scribe]
|
[dependencies.scribe]
|
||||||
git = "ssh://git@gitlab.com/CyberMages/Core/scribe.git"
|
git = "ssh://git@gitlab.com/CyberMages/Core/scribe.git"
|
||||||
|
|
||||||
|
[dependencies.weave]
|
||||||
|
git = "ssh://git@gitlab.com/CyberMages/Core/weave.git"
|
||||||
|
@ -186,7 +186,7 @@ macro_rules! c_flags
|
|||||||
let mut first: bool;
|
let mut first: bool;
|
||||||
|
|
||||||
// Push the left bracket onto the string.
|
// Push the left bracket onto the string.
|
||||||
try!(write!(f, "{}", '{'));
|
weave::attempt!(write!(f, "{}", '{'));
|
||||||
|
|
||||||
// Handle checking each flag to see if it
|
// Handle checking each flag to see if it
|
||||||
// is part of this flag.
|
// is part of this flag.
|
||||||
@ -198,11 +198,11 @@ macro_rules! c_flags
|
|||||||
// then add an OR symbol.
|
// then add an OR symbol.
|
||||||
if first == false
|
if first == false
|
||||||
{
|
{
|
||||||
try!(write!(f, " | "));
|
weave::attempt!(write!(f, " | "));
|
||||||
}
|
}
|
||||||
|
|
||||||
// Push the flags name onto the string.
|
// Push the flags name onto the string.
|
||||||
try!(write!(f, "{}", stringify!($flag)));
|
weave::attempt!(write!(f, "{}", stringify!($flag)));
|
||||||
first = false;
|
first = false;
|
||||||
}
|
}
|
||||||
)+
|
)+
|
||||||
@ -211,7 +211,7 @@ macro_rules! c_flags
|
|||||||
if first == true
|
if first == true
|
||||||
{
|
{
|
||||||
// Put a space in the string.
|
// Put a space in the string.
|
||||||
try!(write!(f, " "));
|
weave::attempt!(write!(f, " "));
|
||||||
}
|
}
|
||||||
|
|
||||||
// Push the right bracket onto the string
|
// Push the right bracket onto the string
|
||||||
|
Loading…
x
Reference in New Issue
Block a user